Skip to content

Commit

Permalink
Suppress error about invalid callback in node 10
Browse files Browse the repository at this point in the history
  • Loading branch information
aredridel committed May 15, 2018
1 parent 4163b67 commit 1d6c040
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/file_poller.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ var filepath = path.resolve.apply(path, [ __dirname ].concat(pathArg));

function writeToFile () {
setTimeout(function () {
fs.writeFile(filepath, '');
fs.writeFile(filepath, '', function () { });
return writeToFile();
}, 0);
}
Expand Down

0 comments on commit 1d6c040

Please sign in to comment.