Unnecessary fs call

pull/2/head
Louis Chatriot 9 years ago
parent 085ec69d54
commit b69c8a2c2b
  1. 1
      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); })
};

Loading…
Cancel
Save