Skip to content

Commit 68021a7

Browse files
committed
refactor(analyzer): Use a more speaking name for dependencies()
This avoids a name conflict with a variable in a following change. Signed-off-by: Frank Viernau <[email protected]>
1 parent 124d5b2 commit 68021a7

File tree

1 file changed

+2
-2
lines changed
  • analyzer/src/main/kotlin/managers/utils

1 file changed

+2
-2
lines changed

analyzer/src/main/kotlin/managers/utils/Graph.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,13 +132,13 @@ internal class Graph private constructor(private val nodeMap: MutableMap<Identif
132132
)
133133
}
134134

135-
return dependencies(root).mapTo(mutableSetOf()) { getPackageReference(it) }
135+
return getDependencies(root).mapTo(mutableSetOf()) { getPackageReference(it) }
136136
}
137137

138138
/**
139139
* Return the identifiers of the direct dependencies of the package denoted by [id].
140140
*/
141-
private fun dependencies(id: Identifier): Set<Identifier> = nodeMap[id].orEmpty()
141+
private fun getDependencies(id: Identifier): Set<Identifier> = nodeMap[id].orEmpty()
142142
}
143143

144144
private enum class NodeColor { WHITE, GRAY, BLACK }

0 commit comments

Comments
 (0)