Permalink
Browse files

test: refactor test-enable-in-init

Remove unused function arguments. Convert to ES6 arrow syntax.

PR-URL: #24976
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
  • Loading branch information...
IronCoderXYZ authored and Trott committed Dec 12, 2018
1 parent 9f37f9c commit 848ae89d7933b683132fe4cabbc6ab3a2a50a977
Showing with 1 addition and 1 deletion.
  1. +1 −1 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;

0 comments on commit 848ae89

Please sign in to comment.