[Gradle, JS] Refactor with remove copypaste
This commit is contained in:
+4
-1
@@ -28,4 +28,7 @@ enum class JsCompilerType : Named, Serializable {
|
||||
JsCompilerType
|
||||
.values().firstOrNull { it.name.equals(argument, ignoreCase = true) }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fun String.removeCapitalizedJsCompilerSuffix(compilerType: JsCompilerType): String =
|
||||
removeSuffix(compilerType.name.capitalize())
|
||||
Reference in New Issue
Block a user