Skip to content

Commit

Permalink
test: replace callback with arrow function
Browse files Browse the repository at this point in the history
PR-URL: #24531
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
  • Loading branch information
potham authored and rvagg committed Nov 28, 2018
1 parent 39adfc8 commit 2a67a49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/parallel/test-child-process-kill.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ cat.stdout.on('end', common.mustCall());
cat.stderr.on('data', common.mustNotCall());
cat.stderr.on('end', common.mustCall());

cat.on('exit', common.mustCall(function(code, signal) {
cat.on('exit', common.mustCall((code, signal) => {
assert.strictEqual(code, null);
assert.strictEqual(signal, 'SIGTERM');
}));
Expand Down

0 comments on commit 2a67a49

Please sign in to comment.