From b69c8a2c2be3e8471e94bd93288fa35302b3d21b Mon Sep 17 00:00:00 2001 From: Louis Chatriot Date: Mon, 23 Nov 2015 15:43:11 +0100 Subject: [PATCH] Unnecessary fs call --- lib/storage.js | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/storage.js b/lib/storage.js index b7831ce..12149dc 100755 --- a/lib/storage.js +++ b/lib/storage.js @@ -92,7 +92,6 @@ storage.crashSafeWriteFile = function (filename, data, cb) { storage.rename(tempFilename, filename, function (err) { return cb(err); }); } , async.apply(storage.flushToStorage, { filename: path.dirname(filename), isDir: true }) - , async.apply(storage.ensureFileDoesntExist, tempFilename) ], function (err) { return callback(err); }) };