summaryrefslogtreecommitdiff
path: root/test/async-hooks
diff options
context:
space:
mode:
authorMitch Hankins <mitchhankins92@gmail.com>2018-12-11 17:32:21 -0700
committerRich Trott <rtrott@gmail.com>2018-12-13 17:28:55 -0800
commit848ae89d7933b683132fe4cabbc6ab3a2a50a977 (patch)
treec26b96743bac8441dfb3f9f0036ad6204d22199d /test/async-hooks
parent9f37f9c4391e4fc390b5e6b16b59238cd6a5e274 (diff)
downloadandroid-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.js2
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;