Skip to content

Commit f1e5906

Browse files
committed
chore: fix more linter issues
1 parent f71a4a0 commit f1e5906

File tree

3 files changed

+15
-9
lines changed

3 files changed

+15
-9
lines changed

src/auth/authclient.ts

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ export abstract class AuthClient
225225
* used to correlate calls and responses.
226226
*/
227227
static readonly RequestMethodNameSymbol: unique symbol = Symbol(
228-
'request method name'
228+
'request method name',
229229
);
230230
static readonly RequestLogIdSymbol: unique symbol = Symbol('request log id');
231231

@@ -246,10 +246,10 @@ export abstract class AuthClient
246246

247247
if (options.get('useAuthRequestParameters') !== false) {
248248
this.transporter.interceptors.request.add(
249-
AuthClient.DEFAULT_REQUEST_INTERCEPTOR
249+
AuthClient.DEFAULT_REQUEST_INTERCEPTOR,
250250
);
251251
this.transporter.interceptors.response.add(
252-
AuthClient.DEFAULT_RESPONSE_INTERCEPTOR
252+
AuthClient.DEFAULT_RESPONSE_INTERCEPTOR,
253253
);
254254
}
255255

@@ -364,7 +364,8 @@ export abstract class AuthClient
364364
}
365365

366366
try {
367-
const symbols: SymbolIndexString = config as unknown as SymbolIndexString;
367+
const symbols: SymbolIndexString =
368+
config as unknown as SymbolIndexString;
368369
const methodName = symbols[AuthClient.RequestMethodNameSymbol];
369370

370371
// This doesn't need to be very unique or interesting, it's just an aid for
@@ -378,7 +379,12 @@ export abstract class AuthClient
378379
headers: config.headers,
379380
};
380381
if (methodName) {
381-
AuthClient.log.info('%s [%s] request %j', methodName, logId, logObject);
382+
AuthClient.log.info(
383+
'%s [%s] request %j',
384+
methodName,
385+
logId,
386+
logObject,
387+
);
382388
} else {
383389
AuthClient.log.info('[%s] request %j', logId, logObject);
384390
}
@@ -404,7 +410,7 @@ export abstract class AuthClient
404410
'%s [%s] response %j',
405411
methodName,
406412
logId,
407-
response.data
413+
response.data,
408414
);
409415
} else {
410416
AuthClient.log.info('[%s] response %j', logId, response.data);
@@ -426,7 +432,7 @@ export abstract class AuthClient
426432
'%s [%s] error %j',
427433
methodName,
428434
logId,
429-
error.response?.data
435+
error.response?.data,
430436
);
431437
} else {
432438
AuthClient.log.error('[%s] error %j', logId, error.response?.data);

src/auth/defaultawssecuritycredentialssupplier.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ export class DefaultAwsSecurityCredentialsSupplier
192192
url: this.imdsV2SessionTokenUrl,
193193
method: 'PUT',
194194
headers: {'x-aws-ec2-metadata-token-ttl-seconds': '300'},
195-
};
195+
};
196196
AuthClient.setMethodName(opts, '#getImdsV2SessionToken');
197197
const response = await transporter.request<string>(opts);
198198
return response.data;

src/auth/oauth2client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -819,7 +819,7 @@ export class OAuth2Client extends AuthClient {
819819
const opts: GaxiosOptions = {
820820
...OAuth2Client.RETRY_CONFIG,
821821
method: 'POST',
822-
url,
822+
url,
823823
data: new URLSearchParams(data),
824824
};
825825
AuthClient.setMethodName(opts, 'refreshTokenNoCache');

0 commit comments

Comments
 (0)