From a03b9c805e52d8fe774979ec26ed6af7888080cb Mon Sep 17 00:00:00 2001 From: Tony Sukiennik Date: Sat, 25 Oct 2014 22:38:04 -0700 Subject: [PATCH] Update index.js Took suggestion from Raymond... --- lib/providers/filesystem/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {