Skip to content
This repository has been archived by the owner on May 29, 2020. It is now read-only.

Commit

Permalink
Ensure no parameter is passed to 'done' function
Browse files Browse the repository at this point in the history
Since nodejs 9.0.0, fs.writeFile seems to throw an undefined parameter as error instead of no parameter in the call back. It leads to an error 'done is not a function'
  • Loading branch information
landru29 committed Aug 2, 2018
1 parent 62b3c30 commit f05eb0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/webfont.js
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ module.exports = function(grunt) {

// Save
var woff2FontPath = wf.getFontPath(o, 'woff2');
fs.writeFile(woff2FontPath, woffFont, done);
fs.writeFile(woff2FontPath, woffFont, function() {done();});
}

/**
Expand Down

0 comments on commit f05eb0c

Please sign in to comment.