Fix typo in fs.writeFile

This commit is contained in:
Tim Caswell authored and Ryan Dahl committed 2010-02-20 21:03:03 -08:00
1 parent ea4956f046
commit 68af59ef6b
1 file changed
+1 -1
+1 -1
View File
@@ -508,7 +508,7 @@ var fsModule = createInternalModule("fs", function (exports) {
if (callback) callback(writeErr);
});
} else {
if (written === _data.length) {
if (written === data.length) {
exports.close(fd, callback);
} else {
writeAll(fd, data.slice(written), encoding, callback);