diff options
author | Leo K <crowlkats@toaxl.com> | 2021-08-05 13:08:58 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-05 13:08:58 +0200 |
commit | 3f0cf9619fce71a8898c495501df4bdb0e07e735 (patch) | |
tree | 1b8af2c832f8344f9a39f55326d576eab63f447f /cli/tests/complex_permissions_test.ts | |
parent | 299c7cfe54cb184e0d0c18b00a154c953b433ebf (diff) |
refactor(cli/tests): remove unnecessary void return types (#11577)
Diffstat (limited to 'cli/tests/complex_permissions_test.ts')
-rw-r--r-- | cli/tests/complex_permissions_test.ts | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/cli/tests/complex_permissions_test.ts b/cli/tests/complex_permissions_test.ts index 002d33540..bae157246 100644 --- a/cli/tests/complex_permissions_test.ts +++ b/cli/tests/complex_permissions_test.ts @@ -2,18 +2,18 @@ const name = Deno.args[0]; // deno-lint-ignore no-explicit-any const test: { [key: string]: (...args: any[]) => void | Promise<void> } = { - read(files: string[]): void { + read(files: string[]) { files.forEach((file) => Deno.readFileSync(file)); }, - write(files: string[]): void { + write(files: string[]) { files.forEach((file) => Deno.writeFileSync(file, new Uint8Array(0), { append: true }) ); }, - netFetch(urls: string[]): void { + netFetch(urls: string[]) { urls.forEach((url) => fetch(url)); }, - netListen(endpoints: string[]): void { + netListen(endpoints: string[]) { endpoints.forEach((endpoint) => { const index = endpoint.lastIndexOf(":"); const [hostname, port] = [ @@ -28,7 +28,7 @@ const test: { [key: string]: (...args: any[]) => void | Promise<void> } = { listener.close(); }); }, - async netConnect(endpoints: string[]): Promise<void> { + async netConnect(endpoints: string[]) { for (const endpoint of endpoints) { const index = endpoint.lastIndexOf(":"); const [hostname, port] = [ |