Skip to content

Commit 7da4d23

Browse files
yoshi-automationbcoe
authored andcommitted
build: add **/*.d.ts to coverage ignore list
1 parent 323ff02 commit 7da4d23

File tree

6 files changed

+1487
-1194
lines changed

6 files changed

+1487
-1194
lines changed

packages/google-cloud-recaptchaenterprise/.nycrc

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"**/scripts",
1313
"**/protos",
1414
"**/test",
15+
"**/*.d.ts",
1516
".jsdoc.js",
1617
"**/.jsdoc.js",
1718
"karma.conf.js",

packages/google-cloud-recaptchaenterprise/protos/protos.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2019 Google LLC
1+
// Copyright 2020 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

packages/google-cloud-recaptchaenterprise/protos/protos.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2019 Google LLC
1+
// Copyright 2020 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

packages/google-cloud-recaptchaenterprise/src/v1beta1/recaptcha_enterprise_service_v1_beta1_client.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,9 @@ export class RecaptchaEnterpriseServiceV1Beta1Client {
205205
for (const methodName of recaptchaEnterpriseServiceV1Beta1StubMethods) {
206206
const innerCallPromise = this.recaptchaEnterpriseServiceV1Beta1Stub.then(
207207
stub => (...args: Array<{}>) => {
208+
if (this._terminated) {
209+
return Promise.reject('The client has already been closed.');
210+
}
208211
return stub[methodName].apply(stub, args);
209212
},
210213
(err: Error | null | undefined) => () => {
@@ -225,9 +228,6 @@ export class RecaptchaEnterpriseServiceV1Beta1Client {
225228
callOptions?: CallOptions,
226229
callback?: APICallback
227230
) => {
228-
if (this._terminated) {
229-
return Promise.reject('The client has already been closed.');
230-
}
231231
return apiCall(argument, callOptions, callback);
232232
};
233233
}

0 commit comments

Comments
 (0)