Skip to content

Commit

Permalink
Use wrapDestructiveFsFunc for files.promises.writeFile.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Newman committed Nov 11, 2019
1 parent cf04e05 commit c7cc817
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tools/fs/files.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1753,7 +1753,7 @@ export const writeFile = wrapDestructiveFsFunc("writeFile", fs.writeFileSync);

// Asynchronous versions of some of the above functions.
export const promises = {
writeFile: wrapFsFunc(
writeFile: wrapDestructiveFsFunc(
"promises.writeFile",
// TODO This will be easier with the fs.promises namespace (available
// in Node.js 12, in Meteor 1.9+).
Expand All @@ -1762,7 +1762,6 @@ export const promises = {
error ? reject(error) : resolve();
});
}),
[0],
),
};

Expand Down

0 comments on commit c7cc817

Please sign in to comment.