diff --git a/lib/fs.js b/lib/fs.js index ad44e7b30c6771..ecef4f224e7d3c 100644 --- a/lib/fs.js +++ b/lib/fs.js @@ -95,16 +95,12 @@ function nullCheck(path, callback) { er.code = 'ENOENT'; if (typeof callback !== 'function') throw er; - process.nextTick(nullCheckCallNT, callback, er); + process.nextTick(callback, er); return false; } return true; } -function nullCheckCallNT(callback, er) { - callback(er); -} - // Static method to set the stats properties on a Stats object. fs.Stats = function( dev,