Skip to content

Commit

Permalink
unsimplify map merge.
Browse files Browse the repository at this point in the history
  • Loading branch information
autonomousapps committed Jul 26, 2024
1 parent ea05638 commit 08725fb
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,8 @@ internal class UsageBuilder(
}
}

// TODO: could this now be simplified to a put? The above handles our complex merging requirements.
put(trace.coordinates, mutableSetOf(usage))
// merge(trace.coordinates, mutableSetOf(usage)) { acc, inc ->
// acc.apply { addAll(inc) }
// }
merge(trace.coordinates, mutableSetOf(usage)) { acc, inc ->
acc.apply { addAll(inc) }
}
}
}

0 comments on commit 08725fb

Please sign in to comment.