diff options
author | Kitson Kelly <me@kitsonkelly.com> | 2019-03-10 04:30:38 +1100 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2019-03-09 12:30:38 -0500 |
commit | 034e2cc02829c9244b32232074c7a48af827a2fb (patch) | |
tree | bade01606a1ee076c1f753ce99c97ddb1e4edf30 /js/read_dir_test.ts | |
parent | 8c7a12d1b258f0ef5ab27f49c424331d43e8d97f (diff) |
Migrate from tslint to eslint for linting (#1905)
Diffstat (limited to 'js/read_dir_test.ts')
-rw-r--r-- | js/read_dir_test.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/js/read_dir_test.ts b/js/read_dir_test.ts index 914c2b2a8..c2d90642c 100644 --- a/js/read_dir_test.ts +++ b/js/read_dir_test.ts @@ -3,7 +3,7 @@ import { testPerm, assert, assertEquals } from "./test_util.ts"; type FileInfo = Deno.FileInfo; -function assertSameContent(files: FileInfo[]) { +function assertSameContent(files: FileInfo[]): void { let counter = 0; for (const file of files) { @@ -30,7 +30,7 @@ testPerm({ read: true }, function readDirSyncSuccess() { testPerm({ read: false }, function readDirSyncPerm() { let caughtError = false; try { - const files = Deno.readDirSync("tests/"); + Deno.readDirSync("tests/"); } catch (e) { caughtError = true; assertEquals(e.kind, Deno.ErrorKind.PermissionDenied); @@ -75,7 +75,7 @@ testPerm({ read: true }, async function readDirSuccess() { testPerm({ read: false }, async function readDirPerm() { let caughtError = false; try { - const files = await Deno.readDir("tests/"); + await Deno.readDir("tests/"); } catch (e) { caughtError = true; assertEquals(e.kind, Deno.ErrorKind.PermissionDenied); |