Skip to content

Commit

Permalink
Fix missing callback
Browse files Browse the repository at this point in the history
  • Loading branch information
vweevers committed Dec 10, 2020
1 parent 36f1e40 commit 5117188
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/project-file.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ module.exports = class ProjectFile extends AbstractFile {
[AbstractFile.write] (callback) {
if (this[kSource]) {
fs.writeFile(this.path, this[kSource], callback)
} else {
process.nextTick(callback)
}
}

Expand Down

0 comments on commit 5117188

Please sign in to comment.