From bb067d1d0483063f12017e8fa4bc208453679865 Mon Sep 17 00:00:00 2001 From: Mitch Hankins Date: Tue, 11 Dec 2018 17:32:21 -0700 Subject: [PATCH] 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 Reviewed-By: Daniel Bevenius Reviewed-By: Colin Ihrig --- test/async-hooks/test-enable-in-init.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/async-hooks/test-enable-in-init.js b/test/async-hooks/test-enable-in-init.js index e4be9f9f87e3eb..7bc70994e1fa7d 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;