File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
whelk-core/src/main/groovy/whelk Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -164,8 +164,6 @@ class Whelk {
164
164
}
165
165
166
166
Map<String , Document > bulkLoad (Collection<String > ids ) {
167
- Map<String , Document > result = [:]
168
-
169
167
def idMap = [:]
170
168
def otherIris = []
171
169
List<String > systemIds = []
@@ -183,11 +181,11 @@ class Whelk {
183
181
}
184
182
}
185
183
if (otherIris) {
186
- Map<String , String > irisByIds = storage. getSystemIdsByIris(otherIris)
184
+ Map<String , String > idToIri = storage. getSystemIdsByIris(otherIris)
187
185
.collectEntries { k , v -> [(v): k] }
188
186
189
- systemIds. addAll(irisByIds . keySet())
190
- idMap. putAll(irisByIds )
187
+ systemIds. addAll(idToIri . keySet())
188
+ idMap. putAll(idToIri )
191
189
}
192
190
193
191
return storage. bulkLoad(systemIds)
You can’t perform that action at this time.
0 commit comments