[Gradle, JS] Refactor with remove copypaste

This commit is contained in:
Ilya Goncharov
2020-02-14 12:37:08 +03:00
parent 397ff26e20
commit 185f7419d5
4 changed files with 10 additions and 8 deletions
@@ -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())