Skip to content

Commit

Permalink
refactor(model): Turn a function parameter type into a Set
Browse files Browse the repository at this point in the history
Using a `SortedSet` is not required.

Signed-off-by: Frank Viernau <[email protected]>
  • Loading branch information
fviernau committed May 24, 2024
1 parent 529b476 commit fd5c2de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions model/src/main/kotlin/DependencyGraph.kt
Original file line number Diff line number Diff line change
Expand Up @@ -397,10 +397,10 @@ private fun DependencyReference.toGraphNode() = DependencyGraphNode(pkg, fragmen
/**
* Construct a mapping of dependencies based on the given [roots].
*/
private fun constructNodeDependenciesFromScopeRoots(roots: SortedSet<DependencyReference>): NodeDependencies {
private fun constructNodeDependenciesFromScopeRoots(roots: Set<DependencyReference>): NodeDependencies {
val mapping = mutableMapOf<DependencyGraphNode, List<DependencyGraphNode>>()

fun construct(refs: SortedSet<DependencyReference>) {
fun construct(refs: Set<DependencyReference>) {
refs.forEach { ref ->
val node = ref.toGraphNode()
if (node !in mapping) {
Expand Down

0 comments on commit fd5c2de

Please sign in to comment.