Skip to content

Commit 9999fff

Browse files
committed
Avoid type any
ESLint is really unhappy with that type. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 196063f commit 9999fff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/downloader.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ function mkdirp(directoryPath: string): void {
2727
}
2828
throw new Error(`${directoryPath} exists, but is not a directory`)
2929
} catch (e) {
30-
if (!(e instanceof Object) || (e as any).code !== 'ENOENT') {
30+
if (!(e instanceof Object) || (e as {code: string}).code !== 'ENOENT') {
3131
throw e
3232
}
3333
}

0 commit comments

Comments
 (0)