From 325c8424b056e589cf40c3a3a174c3bcbdd8cef4 Mon Sep 17 00:00:00 2001 From: Frank Viernau Date: Mon, 1 Jul 2024 16:26:54 +0200 Subject: [PATCH] refactor(stack): Use a shorter name for the dependencies variables Signed-off-by: Frank Viernau --- .../package-managers/stack/src/main/kotlin/Stack.kt | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/plugins/package-managers/stack/src/main/kotlin/Stack.kt b/plugins/package-managers/stack/src/main/kotlin/Stack.kt index 005342d98a63d..b623674c0e51e 100644 --- a/plugins/package-managers/stack/src/main/kotlin/Stack.kt +++ b/plugins/package-managers/stack/src/main/kotlin/Stack.kt @@ -105,9 +105,9 @@ class Stack( val projectId = projectPackage.id.copy(type = managerName) val allDependencies = mutableSetOf() - val externalDependencyList = listDependencies(workingDir, EXTERNAL_SCOPE_NAME).also { allDependencies += it } - val testDependencyList = listDependencies(workingDir, TEST_SCOPE_NAME).also { allDependencies += it } - val benchDependencyList = listDependencies(workingDir, BENCH_SCOPE_NAME).also { allDependencies += it } + val externalDependencies = listDependencies(workingDir, EXTERNAL_SCOPE_NAME).also { allDependencies += it } + val testDependencies = listDependencies(workingDir, TEST_SCOPE_NAME).also { allDependencies += it } + val benchDependencies = listDependencies(workingDir, BENCH_SCOPE_NAME).also { allDependencies += it } val dependencyPackageMap = mutableMapOf() @@ -131,9 +131,9 @@ class Stack( } val scopes = setOf( - Scope(EXTERNAL_SCOPE_NAME, externalDependencyList.getProjectDependencies().toPackageReferences()), - Scope(TEST_SCOPE_NAME, testDependencyList.getProjectDependencies().toPackageReferences()), - Scope(BENCH_SCOPE_NAME, benchDependencyList.getProjectDependencies().toPackageReferences()) + Scope(EXTERNAL_SCOPE_NAME, externalDependencies.getProjectDependencies().toPackageReferences()), + Scope(TEST_SCOPE_NAME, testDependencies.getProjectDependencies().toPackageReferences()), + Scope(BENCH_SCOPE_NAME, benchDependencies.getProjectDependencies().toPackageReferences()) ) val project = Project(