Skip to content

Commit 8218028

Browse files
committed
refactor(dependencies): simplify package declaration creation
1 parent 4c44d90 commit 8218028

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

exts/ext-dependencies/src/233/main/kotlin/cc/unitmesh/dependencies/AutoDevProjectDependenciesModel.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ class AutoDevProjectDependenciesModel(val project: Project) :
2828
return BuildSystemProvider.EP_NAME.extensionList.map {
2929
it.collectDependencies(project, psiFile)
3030
}.flatten().map {
31-
val pkg =
32-
Package(PackageType.fromString(it.type), it.namespace, it.name, it.version, it.qualifiers, it.subpath)
31+
val type = PackageType.fromString(it.type)
32+
val pkg = Package(type, it.namespace, it.name, it.version, it.qualifiers, it.subpath)
3333
PackageDeclaration(pkg)
3434
}
3535
}

0 commit comments

Comments
 (0)