@@ -300,7 +300,7 @@ export interface EventHandlerOptions extends Omit<GlobalOptions, "enforceAppChec
300
300
* @internal
301
301
*/
302
302
export function optionsToTriggerAnnotations (
303
- opts : GlobalOptions | EventHandlerOptions | HttpsOptions ,
303
+ opts : GlobalOptions | EventHandlerOptions | HttpsOptions
304
304
) : TriggerAnnotation {
305
305
const annotation : TriggerAnnotation = { } ;
306
306
copyIfPresent (
@@ -313,7 +313,7 @@ export function optionsToTriggerAnnotations(
313
313
"labels" ,
314
314
"vpcConnector" ,
315
315
"vpcConnectorEgressSettings" ,
316
- "secrets" ,
316
+ "secrets"
317
317
) ;
318
318
convertIfPresent ( annotation , opts , "availableMemoryMb" , "memory" , ( mem : MemoryOption ) => {
319
319
return MemoryOptionToMB [ mem ] ;
@@ -329,7 +329,7 @@ export function optionsToTriggerAnnotations(
329
329
opts ,
330
330
"serviceAccountEmail" ,
331
331
"serviceAccount" ,
332
- serviceAccountFromShorthand ,
332
+ serviceAccountFromShorthand
333
333
) ;
334
334
convertIfPresent ( annotation , opts , "timeout" , "timeoutSeconds" , durationFromSeconds ) ;
335
335
convertIfPresent (
@@ -339,7 +339,7 @@ export function optionsToTriggerAnnotations(
339
339
"retry" ,
340
340
( retry : boolean ) => {
341
341
return retry ? { retry : true } : null ;
342
- } ,
342
+ }
343
343
) ;
344
344
345
345
return annotation ;
@@ -350,7 +350,7 @@ export function optionsToTriggerAnnotations(
350
350
* @internal
351
351
*/
352
352
export function optionsToEndpoint (
353
- opts : GlobalOptions | EventHandlerOptions | HttpsOptions ,
353
+ opts : GlobalOptions | EventHandlerOptions | HttpsOptions
354
354
) : ManifestEndpoint {
355
355
const endpoint : ManifestEndpoint = { } ;
356
356
copyIfPresent (
@@ -363,7 +363,7 @@ export function optionsToEndpoint(
363
363
"ingressSettings" ,
364
364
"labels" ,
365
365
"timeoutSeconds" ,
366
- "cpu" ,
366
+ "cpu"
367
367
) ;
368
368
convertIfPresent ( endpoint , opts , "serviceAccountEmail" , "serviceAccount" ) ;
369
369
if ( opts . vpcConnector !== undefined ) {
@@ -381,10 +381,10 @@ export function optionsToEndpoint(
381
381
"availableMemoryMb" ,
382
382
"memory" ,
383
383
(
384
- mem : MemoryOption | Expression < number > | ResetValue | null ,
384
+ mem : MemoryOption | Expression < number > | ResetValue | null
385
385
) : number | Expression < number > | null | ResetValue => {
386
386
return typeof mem === "object" ? mem : MemoryOptionToMB [ mem ] ;
387
- } ,
387
+ }
388
388
) ;
389
389
convertIfPresent ( endpoint , opts , "region" , "region" , ( region ) => {
390
390
if ( typeof region === "string" ) {
@@ -398,7 +398,7 @@ export function optionsToEndpoint(
398
398
"secretEnvironmentVariables" ,
399
399
"secrets" ,
400
400
( secrets : ( string | SecretParam ) [ ] ) =>
401
- secrets . map ( ( secret ) => ( { key : secret instanceof SecretParam ? secret . name : secret } ) ) ,
401
+ secrets . map ( ( secret ) => ( { key : secret instanceof SecretParam ? secret . name : secret } ) )
402
402
) ;
403
403
404
404
return endpoint ;
0 commit comments