Browse Source

Fix typo in fs.writeFile

v0.7.4-release
Tim Caswell 15 years ago
committed by Ryan Dahl
parent
commit
68af59ef6b
  1. 2
      src/node.js

2
src/node.js

@ -508,7 +508,7 @@ var fsModule = createInternalModule("fs", function (exports) {
if (callback) callback(writeErr); if (callback) callback(writeErr);
}); });
} else { } else {
if (written === _data.length) { if (written === data.length) {
exports.close(fd, callback); exports.close(fd, callback);
} else { } else {
writeAll(fd, data.slice(written), encoding, callback); writeAll(fd, data.slice(written), encoding, callback);

Loading…
Cancel
Save