From e418043d6baa61168e36df06cf66b03da7aa4b5f Mon Sep 17 00:00:00 2001 From: Scott Carver Date: Sun, 11 Nov 2018 13:46:14 -0800 Subject: [PATCH] Fix logic in sourceExists The second line is unreachable, so this always returns true. It looks like the logic is supposed to be checking for a source in the list of fetchers - if so, this should now return the correct value in all cases. --- src/lib/Controller.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/lib/Controller.js b/src/lib/Controller.js index 197a34f..ccc242e 100644 --- a/src/lib/Controller.js +++ b/src/lib/Controller.js @@ -8,8 +8,7 @@ class Controller { } sourceExists(source) { - return true; - if (Object.keys(this.fetchers).indexOf(source) == -1) return false; + return (Object.keys(this.fetchers).indexOf(source) >= 0) } blueprints() {