@@ -237,6 +237,9 @@ export class DataCatalogClient {
237
237
for ( const methodName of dataCatalogStubMethods ) {
238
238
const innerCallPromise = this . dataCatalogStub . then (
239
239
stub => ( ...args : Array < { } > ) => {
240
+ if ( this . _terminated ) {
241
+ return Promise . reject ( 'The client has already been closed.' ) ;
242
+ }
240
243
return stub [ methodName ] . apply ( stub , args ) ;
241
244
} ,
242
245
( err : Error | null | undefined ) => ( ) => {
@@ -257,9 +260,6 @@ export class DataCatalogClient {
257
260
callOptions ?: CallOptions ,
258
261
callback ?: APICallback
259
262
) => {
260
- if ( this . _terminated ) {
261
- return Promise . reject ( 'The client has already been closed.' ) ;
262
- }
263
263
return apiCall ( argument , callOptions , callback ) ;
264
264
} ;
265
265
}
@@ -2681,7 +2681,7 @@ export class DataCatalogClient {
2681
2681
* @param {string } location
2682
2682
* @returns {string } Resource name string.
2683
2683
*/
2684
- entrygroupPath ( project : string , location : string ) {
2684
+ entryGroupPath ( project : string , location : string ) {
2685
2685
return this . _pathTemplates . entrygroupPathTemplate . render ( {
2686
2686
project,
2687
2687
location,
@@ -2768,7 +2768,7 @@ export class DataCatalogClient {
2768
2768
* @param {string } location
2769
2769
* @returns {string } Resource name string.
2770
2770
*/
2771
- tagtemplatePath ( project : string , location : string ) {
2771
+ tagTemplatePath ( project : string , location : string ) {
2772
2772
return this . _pathTemplates . tagtemplatePathTemplate . render ( {
2773
2773
project,
2774
2774
location,
@@ -2869,7 +2869,7 @@ export class DataCatalogClient {
2869
2869
* @param {string } field
2870
2870
* @returns {string } Resource name string.
2871
2871
*/
2872
- tagtemplatefieldPath ( project : string , location : string , field : string ) {
2872
+ tagTemplateFieldPath ( project : string , location : string , field : string ) {
2873
2873
return this . _pathTemplates . tagtemplatefieldPathTemplate . render ( {
2874
2874
project,
2875
2875
location,
0 commit comments