Skip to content

Commit

Permalink
refactor(stack): Make use of isProject()
Browse files Browse the repository at this point in the history
Signed-off-by: Frank Viernau <[email protected]>
  • Loading branch information
fviernau committed Jul 3, 2024
1 parent b11d47c commit c0587e1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions plugins/package-managers/stack/src/main/kotlin/Stack.kt
Original file line number Diff line number Diff line change
Expand Up @@ -185,9 +185,7 @@ private fun Collection<Dependency>.toScope(scopeName: String, packageForName: Ma

return Scope(
name = scopeName,
dependencies = single {
it.location?.type == Location.TYPE_PROJECT
}.dependencies.mapTo(mutableSetOf()) { name ->
dependencies = single { it.isProject() }.dependencies.mapTo(mutableSetOf()) { name ->
dependencyForName.getValue(name).toPackageReference(dependencyForName, packageForName)
}
)
Expand Down

0 comments on commit c0587e1

Please sign in to comment.