Little FIX for adapter

- replaced !ok to ok in if-else block
This commit is contained in:
riabovvo committed 2020-09-02 11:24:11 +03:00
1 parent abd54bf180
commit 24d03b5dbe
1 file changed
+2 -2
+2 -2
View File
@@ -102,9 +102,9 @@ func expandArrayWithMapping(
continue
} else if docTypeStr, ok := docType.(string); !ok {
continue
} else if v, ok := mapping[docTypeStr]; !ok {
} else if v, ok := mapping[docTypeStr]; ok {
putDoc(documents, v, d)
} else if v, ok := mapping[allOtherValues]; !ok {
} else if v, ok := mapping[allOtherValues]; ok {
putDoc(documents, v, d)
}
}