diff options
author | Mitch Hankins <mitchhankins92@gmail.com> | 2018-12-11 17:32:21 -0700 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2018-12-13 17:28:55 -0800 |
commit | 848ae89d7933b683132fe4cabbc6ab3a2a50a977 (patch) | |
tree | c26b96743bac8441dfb3f9f0036ad6204d22199d /test/async-hooks | |
parent | 9f37f9c4391e4fc390b5e6b16b59238cd6a5e274 (diff) | |
download | android-node-v8-848ae89d7933b683132fe4cabbc6ab3a2a50a977.tar.gz android-node-v8-848ae89d7933b683132fe4cabbc6ab3a2a50a977.tar.bz2 android-node-v8-848ae89d7933b683132fe4cabbc6ab3a2a50a977.zip |
test: refactor test-enable-in-init
Remove unused function arguments. Convert to ES6 arrow syntax.
PR-URL: https://github.com/nodejs/node/pull/24976
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'test/async-hooks')
-rw-r--r-- | test/async-hooks/test-enable-in-init.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/async-hooks/test-enable-in-init.js b/test/async-hooks/test-enable-in-init.js index e4be9f9f87..7bc70994e1 100644 --- a/test/async-hooks/test-enable-in-init.js +++ b/test/async-hooks/test-enable-in-init.js @@ -10,7 +10,7 @@ const nestedHook = async_hooks.createHook({ let nestedCall = false; async_hooks.createHook({ - init: common.mustCall(function(id, type) { + init: common.mustCall(() => { nestedHook.enable(); if (!nestedCall) { nestedCall = true; |