Skip to content
This repository was archived by the owner on Jun 27, 2020. It is now read-only.

Commit d69060d

Browse files
author
Sergey Mashkov
committed
Remove unnecessary duplication
This duplication was introduced to isolate npm specific scopes however it actually doesn't work as intended so we can simply remove it since a better design is required here anyway.
1 parent c017e4e commit d69060d

File tree

1 file changed

+1
-6
lines changed
  • kotlin-frontend/src/main/kotlin/org/jetbrains/kotlin/gradle/frontend

1 file changed

+1
-6
lines changed

kotlin-frontend/src/main/kotlin/org/jetbrains/kotlin/gradle/frontend/PackageManager.kt

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,7 @@ interface PackageManager {
1010
fun require(dependencies: List<Dependency>)
1111
fun install(project: Project)
1212

13-
fun require(name: String, versionOrUri: String = "*", scope: String = DevelopmentScope) {
13+
fun require(name: String, versionOrUri: String = "*", scope: String = Dependency.DevelopmentScope) {
1414
require(listOf(Dependency(name, versionOrUri, scope)))
1515
}
16-
17-
companion object {
18-
val DevelopmentScope = "development"
19-
val RuntimeScope = "runtime"
20-
}
2116
}

0 commit comments

Comments
 (0)