mirror of
https://github.com/bellingcat/datasheet-server.git
synced 2026-06-10 04:18:31 +03:00
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:
committed by
Lachie Kermode
parent
b40ab324cd
commit
e418043d6b
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user