mirror of
https://github.com/nodejs/node.git
synced 2026-11-21 12:59:16 -05:00
Fix typo in fs.writeFile
This commit is contained in:
1 parent
ea4956f046
commit
68af59ef6b
1 file changed
+1
-1
+1
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user