diff --git a/lib/fs.js b/lib/fs.js index b71cff6c67..8e7ae5d30f 100644 --- a/lib/fs.js +++ b/lib/fs.js @@ -464,7 +464,7 @@ fs.truncate = function(path, len, callback) { fs.truncateSync = function(path, len) { if (typeof path === 'number') { // legacy - return fs.ftruncateSync(path, len, callback); + return fs.ftruncateSync(path, len); } if (typeof len === 'undefined') { len = 0;