From d7e0a04e988c06537b5ded29e1f7801ef786885b 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 58b1ca1c7c2ec..8bf9a349badf9 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) } )