Update implementation.js

This commit is contained in:
MuchtarSalimov 2018-10-17 00:59:52 -04:00 committed by GitHub
parent 6463e0eb62
commit 8c7d873c4c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -1875,10 +1875,10 @@ function appendFile(fs, context, path, data, options, callback) {
if (!options.encoding) {
options.encoding = 'utf8';
}
if (typeof options.mode === undefined) {
if (!options.mode) {
options.mode = 0o666;
}
if (typeof options.flag === undefined) {
if (!options.flag) {
options.flag = 'a';
}
}