Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
olovy committed Jun 8, 2022
1 parent 055dc40 commit ec7f4be
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions whelk-core/src/main/groovy/whelk/Whelk.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,6 @@ class Whelk {
}

Map<String, Document> bulkLoad(Collection<String> ids) {
Map<String, Document> result = [:]

def idMap = [:]
def otherIris = []
List<String> systemIds = []
Expand All @@ -183,11 +181,11 @@ class Whelk {
}
}
if (otherIris) {
Map<String, String> irisByIds = storage.getSystemIdsByIris(otherIris)
Map<String, String> idToIri = storage.getSystemIdsByIris(otherIris)
.collectEntries { k, v -> [(v): k] }

systemIds.addAll(irisByIds.keySet())
idMap.putAll(irisByIds)
systemIds.addAll(idToIri.keySet())
idMap.putAll(idToIri)
}

return storage.bulkLoad(systemIds)
Expand Down

0 comments on commit ec7f4be

Please sign in to comment.