Skip to content

Commit

Permalink
fs: remove duplicate check
Browse files Browse the repository at this point in the history
Signed-off-by: Fedor Indutny <fedor@indutny.com>
  • Loading branch information
mscdex authored and indutny committed Jun 8, 2014
1 parent e9170cb commit 7fd5a4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/fs.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 7fd5a4d

Please sign in to comment.