Skip to content

Commit ec7f4be

Browse files
committed
Clean up
1 parent 055dc40 commit ec7f4be

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

whelk-core/src/main/groovy/whelk/Whelk.groovy

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,6 @@ class Whelk {
164164
}
165165

166166
Map<String, Document> bulkLoad(Collection<String> ids) {
167-
Map<String, Document> result = [:]
168-
169167
def idMap = [:]
170168
def otherIris = []
171169
List<String> systemIds = []
@@ -183,11 +181,11 @@ class Whelk {
183181
}
184182
}
185183
if (otherIris) {
186-
Map<String, String> irisByIds = storage.getSystemIdsByIris(otherIris)
184+
Map<String, String> idToIri = storage.getSystemIdsByIris(otherIris)
187185
.collectEntries { k, v -> [(v): k] }
188186

189-
systemIds.addAll(irisByIds.keySet())
190-
idMap.putAll(irisByIds)
187+
systemIds.addAll(idToIri.keySet())
188+
idMap.putAll(idToIri)
191189
}
192190

193191
return storage.bulkLoad(systemIds)

0 commit comments

Comments
 (0)