Skip to content

Commit

Permalink
Fix deprecation warning in Node.js 7 (#262)
Browse files Browse the repository at this point in the history
Starting in Node.js v7.0.0, omitting the callback to async functions
emits a deprecation warning. Update the call to `fs.unlink` to instead
use `fs.unlinkSync`, which does not expect a callback.
  • Loading branch information
jimf authored and vladikoff committed May 1, 2018
1 parent bce574c commit cc8572c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/jasmine.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ module.exports = function(grunt) {
removePhantomListeners();

if (!options.keepRunner && fs.statSync(options.outfile).isFile()) {
fs.unlink(options.outfile);
fs.unlinkSync(options.outfile);
}

if (!options.keepRunner) {
Expand Down

0 comments on commit cc8572c

Please sign in to comment.