Skip to content

Commit

Permalink
test: refactor test-enable-in-init
Browse files Browse the repository at this point in the history
Remove unused function arguments. Convert to ES6 arrow syntax.

PR-URL: nodejs#24976
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: Daniel Bevenius <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
  • Loading branch information
Mitch Hankins authored and Trott committed Dec 14, 2018
1 parent 9f37f9c commit 848ae89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/async-hooks/test-enable-in-init.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 848ae89

Please sign in to comment.