File tree Expand file tree Collapse file tree 4 files changed +4
-5
lines changed
integration_test/functions/src Expand file tree Collapse file tree 4 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,6 @@ module.exports = {
51
51
"@typescript-eslint/no-unsafe-member-access" : "warn" ,
52
52
"@typescript-eslint/no-unsafe-return" : "warn" ,
53
53
"@typescript-eslint/restrict-template-expressions" : "warn" ,
54
- "no-constant-condition" : "warn" ,
55
54
} ,
56
55
} ,
57
56
{
Original file line number Diff line number Diff line change @@ -159,7 +159,7 @@ export const integrationTests: any = functions
159
159
await admin . database ( ) . ref ( `testRuns/${ testId } /timestamp` ) . set ( Date . now ( ) ) ;
160
160
const testIdRef = admin . database ( ) . ref ( `testRuns/${ testId } ` ) ;
161
161
functions . logger . info ( "testId is: " , testId ) ;
162
- fs . writeFile ( " /tmp/" + testId + " .txt" , "test" , ( ) => undefined ) ;
162
+ fs . writeFile ( ` /tmp/${ testId } .txt` , "test" , ( ) => undefined ) ;
163
163
try {
164
164
const accessToken = await admin . credential . applicationDefault ( ) . getAccessToken ( ) ;
165
165
await Promise . all ( [
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ async function retryUntil(
65
65
} , timeoutMs ) ;
66
66
} ) ;
67
67
const retry = ( async ( ) => {
68
- while ( true ) {
68
+ for ( ; ; ) {
69
69
if ( await fn ( ) ) {
70
70
break ;
71
71
}
Original file line number Diff line number Diff line change @@ -143,12 +143,12 @@ export function onDispatchHandler<Req = any>(
143
143
} ;
144
144
// For some reason the type system isn't picking up that the handler
145
145
// is a one argument function.
146
- await ( handler as any ) ( arg ) ;
146
+ await ( handler as v2TaskHandler < Req > ) ( arg ) ;
147
147
}
148
148
149
149
res . status ( 204 ) . end ( ) ;
150
150
} catch ( err ) {
151
- let httpErr = err ;
151
+ let httpErr : https . HttpsError = err ;
152
152
if ( ! ( err instanceof https . HttpsError ) ) {
153
153
// This doesn't count as an 'explicit' error.
154
154
logger . error ( "Unhandled error" , err ) ;
You can’t perform that action at this time.
0 commit comments