From c0587e1fe7470c94ed330c981c5f03bd424233fe Mon Sep 17 00:00:00 2001 From: Frank Viernau Date: Wed, 3 Jul 2024 10:29:15 +0200 Subject: [PATCH] refactor(stack): Make use of `isProject()` Signed-off-by: Frank Viernau --- plugins/package-managers/stack/src/main/kotlin/Stack.kt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/plugins/package-managers/stack/src/main/kotlin/Stack.kt b/plugins/package-managers/stack/src/main/kotlin/Stack.kt index ab913d725b7b9..41daf4649dbcc 100644 --- a/plugins/package-managers/stack/src/main/kotlin/Stack.kt +++ b/plugins/package-managers/stack/src/main/kotlin/Stack.kt @@ -185,9 +185,7 @@ private fun Collection.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) } )