From 034e2cc02829c9244b32232074c7a48af827a2fb Mon Sep 17 00:00:00 2001 From: Kitson Kelly Date: Sun, 10 Mar 2019 04:30:38 +1100 Subject: Migrate from tslint to eslint for linting (#1905) --- js/read_dir_test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'js/read_dir_test.ts') 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); -- cgit v1.2.3