File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
internal-packages/run-engine/src/engine Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -337,7 +337,7 @@ export class RunLocker {
337
337
const signal = controller . signal as redlock . RedlockAbortSignal ;
338
338
339
339
const manualContext : ManualLockContext = {
340
- lock : lock ! ,
340
+ lock,
341
341
timeout : undefined ,
342
342
extension : undefined ,
343
343
} ;
@@ -390,12 +390,12 @@ export class RunLocker {
390
390
this . #cleanupExtension( manualContext ) ;
391
391
392
392
// Release the lock using tryCatch
393
- const [ releaseError ] = await tryCatch ( lock ! . release ( ) ) ;
393
+ const [ releaseError ] = await tryCatch ( lock . release ( ) ) ;
394
394
if ( releaseError ) {
395
395
this . logger . warn ( "[RunLocker] Error releasing lock" , {
396
396
error : releaseError ,
397
397
resources : sortedResources ,
398
- lockValue : lock ! . value ,
398
+ lockValue : lock . value ,
399
399
} ) ;
400
400
}
401
401
}
You can’t perform that action at this time.
0 commit comments