Wizard: remove redundant return in native target configuration
#KT-35720 fixed
This commit is contained in:
+1
-1
@@ -13,7 +13,7 @@ kotlin {
|
|||||||
org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTargetWithTests nativeTarget
|
org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTargetWithTests nativeTarget
|
||||||
if (hostOs == "Mac OS X") nativeTarget = macosX64('myNative')
|
if (hostOs == "Mac OS X") nativeTarget = macosX64('myNative')
|
||||||
else if (hostOs == "Linux") nativeTarget = linuxX64("myNative")
|
else if (hostOs == "Linux") nativeTarget = linuxX64("myNative")
|
||||||
else if (isMingwX64) return nativeTarget = mingwX64("myNative")
|
else if (isMingwX64) nativeTarget = mingwX64("myNative")
|
||||||
else throw new GradleException("Host OS is not supported in Kotlin/Native.")
|
else throw new GradleException("Host OS is not supported in Kotlin/Native.")
|
||||||
|
|
||||||
nativeTarget.with {
|
nativeTarget.with {
|
||||||
|
|||||||
+1
-1
@@ -58,7 +58,7 @@ object NativeForCurrentSystemTarget : NativeTargetConfigurator, SingleCoexistenc
|
|||||||
+"""org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTargetWithTests $DEFAULT_TARGET_VARIABLE_NAME"""; nlIndented()
|
+"""org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTargetWithTests $DEFAULT_TARGET_VARIABLE_NAME"""; nlIndented()
|
||||||
+"""if (hostOs == "Mac OS X") $DEFAULT_TARGET_VARIABLE_NAME = macosX64('$moduleName')"""; nlIndented()
|
+"""if (hostOs == "Mac OS X") $DEFAULT_TARGET_VARIABLE_NAME = macosX64('$moduleName')"""; nlIndented()
|
||||||
+"""else if (hostOs == "Linux") $DEFAULT_TARGET_VARIABLE_NAME = linuxX64("$moduleName")"""; nlIndented()
|
+"""else if (hostOs == "Linux") $DEFAULT_TARGET_VARIABLE_NAME = linuxX64("$moduleName")"""; nlIndented()
|
||||||
+"""else if (isMingwX64) return $DEFAULT_TARGET_VARIABLE_NAME = mingwX64("$moduleName")"""; nlIndented()
|
+"""else if (isMingwX64) $DEFAULT_TARGET_VARIABLE_NAME = mingwX64("$moduleName")"""; nlIndented()
|
||||||
+"""else throw new GradleException("Host OS is not supported in Kotlin/Native.")""";
|
+"""else throw new GradleException("Host OS is not supported in Kotlin/Native.")""";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user