From b7505ff48089d9a2f5fd9b59231a08bc7a5807af Mon Sep 17 00:00:00 2001 From: Sofia Leon Date: Fri, 14 Feb 2025 18:18:01 -0800 Subject: [PATCH] rerun lint --- src/index.ts | 16 ++++++++-------- test/index.ts | 12 ++++++------ 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/index.ts b/src/index.ts index 006e034..737560a 100644 --- a/src/index.ts +++ b/src/index.ts @@ -203,7 +203,7 @@ function teenyRequest(reqOpts: Options): Request; function teenyRequest(reqOpts: Options, callback: RequestCallback): void; function teenyRequest( reqOpts: Options, - callback?: RequestCallback + callback?: RequestCallback, ): Request | void { const {uri, options} = requestToFetchOptions(reqOpts); @@ -237,7 +237,7 @@ function teenyRequest( }, (err: Error) => { callback(err, response, body); - } + }, ); return; } @@ -249,13 +249,13 @@ function teenyRequest( }, err => { callback(err, response, body); - } + }, ); }, err => { teenyRequest.stats.requestFinished(); callback(err, null!, null); - } + }, ); return; } @@ -292,7 +292,7 @@ function teenyRequest( err => { teenyRequest.stats.requestFinished(); requestStream.emit('error', err); - } + }, ); // fetch doesn't supply the raw HTTP stream, instead it @@ -325,7 +325,7 @@ function teenyRequest( }, err => { callback(err, response, body); - } + }, ); return; } @@ -338,13 +338,13 @@ function teenyRequest( }, err => { callback(err, response, body); - } + }, ); }, err => { teenyRequest.stats.requestFinished(); callback(err, null!, null); - } + }, ); return; } diff --git a/test/index.ts b/test/index.ts index 4dcd4df..1dcd69e 100644 --- a/test/index.ts +++ b/test/index.ts @@ -362,7 +362,7 @@ describe('teeny', () => { assert.strictEqual(response.statusCode, 200); assert.strictEqual(body, '🌍'); scope.done(); - } + }, ); }); @@ -375,7 +375,7 @@ describe('teeny', () => { assert.strictEqual(response.statusCode, 200); assert.strictEqual(body, '🌍'); scope.done(); - } + }, ); }); @@ -406,7 +406,7 @@ describe('teeny', () => { assert.ok(statsStub.requestFinished.calledOnceWithExactly()); scope.done(); done(); - } + }, ); }); @@ -424,7 +424,7 @@ describe('teeny', () => { assert.ok(statsStub.requestStarting.calledOnceWithExactly()); assert.ok(statsStub.requestFinished.calledOnceWithExactly()); scope.done(); - } + }, ); }); @@ -434,7 +434,7 @@ describe('teeny', () => { teenyRequest({uri: ''}); }, /Missing uri or url in reqOpts/, - 'Did not throw with expected message' + 'Did not throw with expected message', ); }); @@ -444,7 +444,7 @@ describe('teeny', () => { teenyRequest({url: ''}); }, /Missing uri or url in reqOpts/, - 'Did not throw with expected message' + 'Did not throw with expected message', ); }); });