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: #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
Mitch Hankins authored and BethGriggs committed Dec 17, 2018
1 parent 877f8a0 commit d5b0ce1
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 d5b0ce1

Please sign in to comment.