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>
This commit is contained in:
Mitch Hankins 2018-12-11 17:32:21 -07:00 committed by Rich Trott
parent 9f37f9c439
commit 848ae89d79

View File

@ -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;