Little FIX for adapter
- replaced !ok to ok in if-else block
This commit is contained in:
1 parent
abd54bf180
commit
24d03b5dbe
1 file changed
+2
-2
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user