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/034_onload/main.ts | |
parent | 299c7cfe54cb184e0d0c18b00a154c953b433ebf (diff) |
refactor(cli/tests): remove unnecessary void return types (#11577)
Diffstat (limited to 'cli/tests/034_onload/main.ts')
-rw-r--r-- | cli/tests/034_onload/main.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cli/tests/034_onload/main.ts b/cli/tests/034_onload/main.ts index f8c48ba7b..7696ec122 100644 --- a/cli/tests/034_onload/main.ts +++ b/cli/tests/034_onload/main.ts @@ -4,7 +4,7 @@ import "./imported.ts"; assert(window.hasOwnProperty("onload")); assert(window.onload === null); -const eventHandler = (e: Event): void => { +const eventHandler = (e: Event) => { assert(!e.cancelable); console.log(`got ${e.type} event in event handler (main)`); }; @@ -13,12 +13,12 @@ window.addEventListener("load", eventHandler); window.addEventListener("unload", eventHandler); -window.onload = (e: Event): void => { +window.onload = (e: Event) => { assert(!e.cancelable); console.log(`got ${e.type} event in onload function`); }; -window.onunload = (e: Event): void => { +window.onunload = (e: Event) => { assert(!e.cancelable); console.log(`got ${e.type} event in onunload function`); }; |