Skip to content

Commit 7fc6bb5

Browse files
committed
fix(gax): fix promise/always-return lint errors and preserve LogPayload type compatibility
1 parent fc09dae commit 7fc6bb5

3 files changed

Lines changed: 3 additions & 0 deletions

File tree

‎core/packages/gax/src/iamService.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -405,6 +405,7 @@ export class IamClient {
405405
close(): Promise<void> {
406406
this.initialize().catch(console.error);
407407
if (!this._terminated) {
408+
// eslint-disable-next-line promise/always-return
408409
return this.iamPolicyStub!.then(stub => {
409410
this._terminated = true;
410411
stub.close();

‎core/packages/gax/src/locationService.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -548,6 +548,7 @@ export class LocationsClient {
548548
close(): Promise<void> {
549549
this.initialize().catch(console.error);
550550
if (!this._terminated) {
551+
// eslint-disable-next-line promise/always-return
551552
return this.locationsStub!.then(stub => {
552553
this._terminated = true;
553554
stub.close();

‎core/packages/gax/src/observability/LoggerHelper.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ export interface LogPayload {
5252
'gcp.client.repo'?: string;
5353
'gcp.client.artifact'?: string;
5454
'gcp.client.version'?: string;
55+
'gcp.client.language'?: 'node';
5556
'gcp.client.service'?: string;
5657
'url.domain'?: string;
5758
'server.address'?: string;

0 commit comments

Comments
 (0)