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.
This commit is contained in:
Scott Carver
2018-11-11 13:46:14 -08:00
committed by Lachie Kermode
parent b40ab324cd
commit e418043d6b

View File

@@ -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() {