Skip to content

Commit

Permalink
test: change callback function to arrow function
Browse files Browse the repository at this point in the history
PR-URL: #17734
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Jon Moss <[email protected]>
Reviewed-By: Tobias Nießen <[email protected]>
Reviewed-By: Gireesh Punathil <[email protected]>
  • Loading branch information
rt33 authored and MylesBorins committed Jan 9, 2018
1 parent d6c5885 commit 5a9694e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ function test() {
d.on('error', function errorHandler() {
});

d.run(function() {
d2.run(function() {
d.run(() => {
d2.run(() => {
const fs = require('fs');
fs.exists('/non/existing/file', function onExists() {
throw new Error('boom!');
Expand Down

0 comments on commit 5a9694e

Please sign in to comment.