File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
packages/core/src/shared/sam/debugger Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ import { runLambdaFunction } from '../localLambdaRunner'
1616import { SamLaunchRequestArgs } from './awsSamDebugger'
1717import { getLogger } from '../../logger'
1818import fs from '../../fs/fs'
19- import { chmod , unlink } from 'fs/promises'
19+ import { chmod } from 'fs/promises'
2020import { ChildProcess } from '../../utilities/processUtils'
2121import { Timeout } from '../../utilities/timeoutUtils'
2222import { execFileSync , SpawnOptions } from 'child_process'
@@ -263,7 +263,7 @@ async function installDebugger(debuggerPath: string): Promise<boolean> {
263263 }
264264 } catch ( e ) {
265265 if ( installScript && ( await fs . exists ( installScript . path ) ) ) {
266- await unlink ( installScript . path ) // Removes the install script since it failed
266+ await fs . delete ( installScript . path ) // Removes the install script since it failed
267267 }
268268 getLogger ( ) . error ( 'Failed to cross-compile Delve debugger: %O' , e as Error )
269269 return false
You can’t perform that action at this time.
0 commit comments