[Gradle, JS] Change byArgument on byArgumentOrNull

#KT-38485 fixed
This commit is contained in:
Ilya Goncharov
2020-04-22 12:14:20 +03:00
parent 47c27726b9
commit 8e282e8aad
4 changed files with 11 additions and 17 deletions
@@ -13,7 +13,7 @@ enum class KotlinJsCompilerType {
companion object {
const val jsCompilerProperty = "kotlin.js.compiler"
fun byArgument(argument: String): KotlinJsCompilerType? =
fun byArgumentOrNull(argument: String): KotlinJsCompilerType? =
values().firstOrNull { it.name.equals(argument, ignoreCase = true) }
}
}