From f45526d7b10302e4f06f0fd29ec769c7d4eecbd4 Mon Sep 17 00:00:00 2001 From: Louis Chatriot Date: Sun, 8 Sep 2013 22:57:31 -0700 Subject: [PATCH] Fixed small bug --- lib/persistence.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/persistence.js b/lib/persistence.js index c6686da..8e006e8 100644 --- a/lib/persistence.js +++ b/lib/persistence.js @@ -91,8 +91,6 @@ Persistence.prototype.persistCachedDatabase = function (cb) { toPersist += model.serialize(doc) + '\n'; }); - if (toPersist.length === 0) { return callback(null); } - fs.writeFile(this.filename, toPersist, function (err) { return callback(err); }); };