Fix linting
This commit is contained in:
1 parent
20dfba8315
commit
98e1a30696
1 file changed
+3
-4
@@ -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)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user