diff options
author | Brian White <mscdex@mscdex.net> | 2014-06-07 11:53:23 -0400 |
---|---|---|
committer | Fedor Indutny <fedor@indutny.com> | 2014-06-08 10:01:23 -0700 |
commit | 7fd5a4d096a8d868eb0f17fcb43779bab73ea030 (patch) | |
tree | 7ba5eff60a1eaea4672115842c52359910e434da /lib/fs.js | |
parent | e9170cbc3d3a12cf6c02068916cc7c3bb3f10aaa (diff) | |
download | nodejs-7fd5a4d096a8d868eb0f17fcb43779bab73ea030.tar.gz nodejs-7fd5a4d096a8d868eb0f17fcb43779bab73ea030.tar.bz2 nodejs-7fd5a4d096a8d868eb0f17fcb43779bab73ea030.zip |
fs: remove duplicate check
Signed-off-by: Fedor Indutny <fedor@indutny.com>
Diffstat (limited to 'lib/fs.js')
-rw-r--r-- | lib/fs.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -944,7 +944,7 @@ fs.writeFile = function(path, data, options, callback) { assertEncoding(options.encoding); var flag = options.flag || 'w'; - fs.open(path, options.flag || 'w', options.mode, function(openErr, fd) { + fs.open(path, flag, options.mode, function(openErr, fd) { if (openErr) { if (callback) callback(openErr); } else { |