diff --git a/lib/providers/filesystem/index.js b/lib/providers/filesystem/index.js index 1e8b215..5cadfec 100644 --- a/lib/providers/filesystem/index.js +++ b/lib/providers/filesystem/index.js @@ -199,7 +199,7 @@ FileSystemProvider.prototype.getFiles = function (container, options, cb) { if (!validateName(container, cb)) return; var dir = path.join(this.root, container); fs.readdir(dir, function (err, entries) { - entries = entries ? entries : []; + entries = entries || []; var files = []; var tasks = []; entries.forEach(function (f) {