Skip to content

Commit d5b0ce1

Browse files
Mitch HankinsBethGriggs
Mitch Hankins
authored andcommitted
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>
1 parent 877f8a0 commit d5b0ce1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/async-hooks/test-enable-in-init.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const nestedHook = async_hooks.createHook({
1010
let nestedCall = false;
1111

1212
async_hooks.createHook({
13-
init: common.mustCall(function(id, type) {
13+
init: common.mustCall(() => {
1414
nestedHook.enable();
1515
if (!nestedCall) {
1616
nestedCall = true;

0 commit comments

Comments
 (0)