Skip to content

Commit

Permalink
run lint
Browse files Browse the repository at this point in the history
  • Loading branch information
sofisl committed Feb 15, 2025
1 parent e8c0810 commit b152c95
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ function teenyRequest(reqOpts: Options): Request;
function teenyRequest(reqOpts: Options, callback: RequestCallback): void;
function teenyRequest(
reqOpts: Options,
callback?: RequestCallback,
callback?: RequestCallback

Check failure on line 205 in src/index.ts

View workflow job for this annotation

GitHub Actions / lint

Insert `,`
): Request | void {
const {uri, options} = requestToFetchOptions(reqOpts);

Expand Down Expand Up @@ -236,7 +236,7 @@ function teenyRequest(
},
(err: Error) => {
callback(err, response, body);
},
}

Check failure on line 239 in src/index.ts

View workflow job for this annotation

GitHub Actions / lint

Insert `,`
);
return;
}
Expand All @@ -248,13 +248,13 @@ function teenyRequest(
},
err => {
callback(err, response, body);
},
}

Check failure on line 251 in src/index.ts

View workflow job for this annotation

GitHub Actions / lint

Insert `,`
);
},
err => {
teenyRequest.stats.requestFinished();
callback(err, null!, null);
},
}

Check failure on line 257 in src/index.ts

View workflow job for this annotation

GitHub Actions / lint

Insert `,`
);
return;
}
Expand Down Expand Up @@ -291,7 +291,7 @@ function teenyRequest(
err => {
teenyRequest.stats.requestFinished();
requestStream.emit('error', err);
},
}

Check failure on line 294 in src/index.ts

View workflow job for this annotation

GitHub Actions / lint

Insert `,`
);

// fetch doesn't supply the raw HTTP stream, instead it
Expand Down Expand Up @@ -324,7 +324,7 @@ function teenyRequest(
},
err => {
callback(err, response, body);
},
}

Check failure on line 327 in src/index.ts

View workflow job for this annotation

GitHub Actions / lint

Insert `,`
);
return;
}
Expand All @@ -337,13 +337,13 @@ function teenyRequest(
},
err => {
callback(err, response, body);
},
}

Check failure on line 340 in src/index.ts

View workflow job for this annotation

GitHub Actions / lint

Insert `,`
);
},
err => {
teenyRequest.stats.requestFinished();
callback(err, null!, null);
},
}
);
return;
}
Expand Down

0 comments on commit b152c95

Please sign in to comment.