mirror of https://github.com/actions/toolkit
Fix linting
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
|
// download-http-client.ts#L151 no longer creates a file and we fail here
|
||||||
try {
|
try {
|
||||||
await fs.stat(filePath)
|
await fs.stat(filePath)
|
||||||
}
|
} catch (e) {
|
||||||
catch (e) {
|
// File does not exist
|
||||||
console.log("File does not exist.");
|
return
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
await fs.unlink(filePath)
|
await fs.unlink(filePath)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue