Skip to content

Commit

Permalink
Minor fix in RelationExpander
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaro committed Dec 11, 2023
1 parent cec605f commit 63b6283
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class RelationExpander(

val newIds = relations.flatMap { listOf(it.first, it.third) } - ids

val newRetrievables = retrievableReader.getAll(newIds.toList())
val newRetrievables = if (newIds.isNotEmpty()) retrievableReader.getAll(newIds.toList()) else emptySequence()

val allRetrieved =
(inputRetrieved.map { Retrieved.PlusRelationship(it) } + newRetrievables.map { Retrieved.WithRelationship(it) }).associateBy { it.id }
Expand Down

0 comments on commit 63b6283

Please sign in to comment.