We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
any
1 parent 196063f commit 9999fffCopy full SHA for 9999fff
src/downloader.ts
@@ -27,7 +27,7 @@ function mkdirp(directoryPath: string): void {
27
}
28
throw new Error(`${directoryPath} exists, but is not a directory`)
29
} catch (e) {
30
- if (!(e instanceof Object) || (e as any).code !== 'ENOENT') {
+ if (!(e instanceof Object) || (e as {code: string}).code !== 'ENOENT') {
31
throw e
32
33
0 commit comments