From 78739cbfc6fbb6b9b24fdb176efde78f8ff688ac Mon Sep 17 00:00:00 2001 From: Luke Date: Tue, 5 Jul 2016 11:14:02 +0800 Subject: [PATCH] Fix for #149 (reverted from commit 047c9554ee4a85ae14f8b3f23fd77d916fa55a14) --- index.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/index.js b/index.js index c947f26..b160e39 100644 --- a/index.js +++ b/index.js @@ -4,7 +4,7 @@ var Revisioner = require('./revisioner'); var RevAll = (function () { var RevAll = function (options) { - + if (!(this instanceof RevAll)) { return new RevAll(options); } @@ -54,8 +54,8 @@ var RevAll = (function () { callback(); }, function (callback) { - if (revisioner.files.length > 0) - this.push(revisioner.versionFile()); + + this.push(revisioner.versionFile()); callback(); }); @@ -72,8 +72,8 @@ var RevAll = (function () { callback(); }, function (callback) { - if (revisioner.files.length > 0) - this.push(revisioner.manifestFile()); + + this.push(revisioner.manifestFile()); callback(); });