summaryrefslogtreecommitdiff
path: root/lib/fs.js
diff options
context:
space:
mode:
authorBrian White <mscdex@mscdex.net>2014-06-07 11:53:23 -0400
committerFedor Indutny <fedor@indutny.com>2014-06-08 10:01:23 -0700
commit7fd5a4d096a8d868eb0f17fcb43779bab73ea030 (patch)
tree7ba5eff60a1eaea4672115842c52359910e434da /lib/fs.js
parente9170cbc3d3a12cf6c02068916cc7c3bb3f10aaa (diff)
downloadnodejs-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.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/fs.js b/lib/fs.js
index 8f95d624a..990eb6d33 100644
--- a/lib/fs.js
+++ b/lib/fs.js
@@ -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 {