From 3f0cf9619fce71a8898c495501df4bdb0e07e735 Mon Sep 17 00:00:00 2001 From: Leo K Date: Thu, 5 Aug 2021 13:08:58 +0200 Subject: refactor(cli/tests): remove unnecessary void return types (#11577) --- cli/tests/unit/sync_test.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'cli/tests/unit/sync_test.ts') diff --git a/cli/tests/unit/sync_test.ts b/cli/tests/unit/sync_test.ts index 98b2f4bd9..c359513eb 100644 --- a/cli/tests/unit/sync_test.ts +++ b/cli/tests/unit/sync_test.ts @@ -3,7 +3,7 @@ import { assertEquals, unitTest } from "./test_util.ts"; unitTest( { perms: { read: true, write: true } }, - function fdatasyncSyncSuccess(): void { + function fdatasyncSyncSuccess() { const filename = Deno.makeTempDirSync() + "/test_fdatasyncSync.txt"; const file = Deno.openSync(filename, { read: true, @@ -21,7 +21,7 @@ unitTest( unitTest( { perms: { read: true, write: true } }, - async function fdatasyncSuccess(): Promise { + async function fdatasyncSuccess() { const filename = (await Deno.makeTempDir()) + "/test_fdatasync.txt"; const file = await Deno.open(filename, { read: true, @@ -39,7 +39,7 @@ unitTest( unitTest( { perms: { read: true, write: true } }, - function fsyncSyncSuccess(): void { + function fsyncSyncSuccess() { const filename = Deno.makeTempDirSync() + "/test_fsyncSync.txt"; const file = Deno.openSync(filename, { read: true, @@ -57,7 +57,7 @@ unitTest( unitTest( { perms: { read: true, write: true } }, - async function fsyncSuccess(): Promise { + async function fsyncSuccess() { const filename = (await Deno.makeTempDir()) + "/test_fsync.txt"; const file = await Deno.open(filename, { read: true, -- cgit v1.2.3