8000 Update fs usages according to node v10 deprecations · metarhia/impress@fa3bc75 · GitHub
[go: up one dir, main page]

Skip to content

Commit fa3bc75

Browse files
lundibunditshemsedinov
authored andcommitted
Update fs usages according to node v10 deprecations
As per this nodejs/node#12562 node PR callback in async fs functions is no longer optional. This commit fixes remaining usages in impress. Refs: #852 PR-URL: #856
1 parent 1fcac69 commit fa3bc75

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/application.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -615,7 +615,8 @@ const mixin = (application) => {
615615
application.model[sectionName] = exports;
616616
} else if (placeName === 'setup') {
617617
api.fs.writeFile(
618-
path + '/' + sectionName + '.done', new Date().toISOString()
618+
path + '/' + sectionName + '.done', new Date().toISOString(),
619+
api.common.emptiness
619620
);
620621
}
621622
callback();

0 commit comments

Comments
 (0)
0