[konan home provider] make more konan home detector more safe
This commit is contained in:
@@ -10,7 +10,7 @@ object KonanHomeProvider {
|
||||
"org.jetbrains.kotlin.native.home",
|
||||
"konan.home")
|
||||
internal val kotlinNativeHome
|
||||
get() = validPropertiesNames.mapNotNull(System::getProperty).first()
|
||||
get() = validPropertiesNames.mapNotNull(System::getProperty).firstOrNull()
|
||||
/**
|
||||
* Determines a path to the current Kotlin/Native distribution.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user