From eb2c77bd93f5cc5c8931d1a63406d2952f8f097e Mon Sep 17 00:00:00 2001 From: MuchtarSalimov Date: Tue, 16 Oct 2018 14:07:26 -0400 Subject: [PATCH] Update implementation.js --- src/filesystem/implementation.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/filesystem/implementation.js b/src/filesystem/implementation.js index d9342a2..99e5363 100644 --- a/src/filesystem/implementation.js +++ b/src/filesystem/implementation.js @@ -1871,14 +1871,14 @@ function appendFile(fs, context, path, data, options, callback) { return callback(new Errors.EINVAL('flags is not valid', path)); } - if typeof (options ==== 'object') { + if (typeof options ==== 'object') { if (options.encoding === undefined) { options.encoding = 'utf8'; } - if (options.mode === undefined) { + if (typeof options.mode === undefined) { options.mode = 0o666; } - if (options.flag === undefined) { + if (typeof options.flag === undefined) { options.flag = 'a'; } }