Browse files

fix introduced regression

  • Loading branch information...
1 parent 0762b05 commit 3f2c7344d011e97e760f4a975e32180560f9191e @Gozala committed Apr 10, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 fs.js
View
2 fs.js
@@ -608,7 +608,7 @@ exports.writeFile = function writeFile(path, content, encoding, callback) {
try {
if (isFunction(encoding)) {
callback = encoding
- encoding = callback
+ encoding = null
}
if (isString(content))
content = new Buffer(content, encoding);

0 comments on commit 3f2c734

Please sign in to comment.