Skip to content

Commit 49414e4

Browse files
committed
replace unlink with delete
1 parent 8af9ba9 commit 49414e4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/core/src/shared/sam/debugger/goSamDebug.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import { runLambdaFunction } from '../localLambdaRunner'
1616
import { SamLaunchRequestArgs } from './awsSamDebugger'
1717
import { getLogger } from '../../logger'
1818
import fs from '../../fs/fs'
19-
import { chmod, unlink } from 'fs/promises'
19+
import { chmod } from 'fs/promises'
2020
import { ChildProcess } from '../../utilities/processUtils'
2121
import { Timeout } from '../../utilities/timeoutUtils'
2222
import { 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

0 commit comments

Comments
 (0)