mirror of
https://github.com/bellingcat/datasheet-server.git
synced 2026-06-11 21:08:33 +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) {
|
sourceExists(source) {
|
||||||
return true;
|
return (Object.keys(this.fetchers).indexOf(source) >= 0)
|
||||||
if (Object.keys(this.fetchers).indexOf(source) == -1) return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
blueprints() {
|
blueprints() {
|
||||||
|
|||||||
Reference in New Issue
Block a user