Skip to content

Commit

Permalink
Update fs usages according to node v10 deprecations
Browse files Browse the repository at this point in the history
As per this nodejs/node#12562 node PR callback
in async fs functions is no longer optional. This commit fixes
remaining usages in impress.
  • Loading branch information
lundibundi committed Jul 28, 2018
1 parent 1fcac69 commit 1fb5b19
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,8 @@ const mixin = (application) => {
application.model[sectionName] = exports;
} else if (placeName === 'setup') {
api.fs.writeFile(
path + '/' + sectionName + '.done', new Date().toISOString()
path + '/' + sectionName + '.done', new Date().toISOString(),
api.common.emptiness
);
}
callback();
Expand Down

0 comments on commit 1fb5b19

Please sign in to comment.