mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2025-08-22 09:09:10 +08:00
Fix linting
This commit is contained in:
parent
4abb5a2ae0
commit
1d61e5fb19
@ -275,10 +275,9 @@ export async function rmFile(filePath: string): Promise<void> {
|
||||
// download-http-client.ts#L151 no longer creates a file and we fail here
|
||||
try {
|
||||
await fs.stat(filePath)
|
||||
}
|
||||
catch (e) {
|
||||
console.log("File does not exist.");
|
||||
return;
|
||||
} catch (e) {
|
||||
// File does not exist
|
||||
return
|
||||
}
|
||||
await fs.unlink(filePath)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user