Skip to content

Commit

Permalink
Small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-goral committed Jun 11, 2021
1 parent 324a18b commit d5b5d54
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ private tailrec fun Tasks.reduce(
when {
isEmpty() -> acc
else -> flatMap(Parallel.Task<*>::args)
.mapNotNull(all::findByReturnType)
.mapNotNull(all::findByType)
.toSet()
.reduce(all, acc + this)
}

private fun Tasks.findByReturnType(
private fun Tasks.findByType(
type: Parallel.Type<*>
): Parallel.Task<*>? =
find { task -> task.type == type }

0 comments on commit d5b5d54

Please sign in to comment.