Remove unnecessary main arguments from MPP wizard builders
This commit is contained in:
+1
-1
@@ -40,7 +40,7 @@ class KotlinGradleNativeMultiplatformModuleBuilder : KotlinGradleAbstractMultipl
|
|||||||
|
|
||||||
fun hello(): String = "Hello, Kotlin/Native!"
|
fun hello(): String = "Hello, Kotlin/Native!"
|
||||||
|
|
||||||
fun main(args: Array<String>) {
|
fun main() {
|
||||||
println(hello())
|
println(hello())
|
||||||
}
|
}
|
||||||
""".trimIndent()
|
""".trimIndent()
|
||||||
|
|||||||
+1
-1
@@ -88,7 +88,7 @@ class KotlinGradleMobileMultiplatformModuleBuilder :
|
|||||||
fun proxyHello() = hello()
|
fun proxyHello() = hello()
|
||||||
}
|
}
|
||||||
|
|
||||||
fun main(args: Array<String>) {
|
fun main() {
|
||||||
println(hello())
|
println(hello())
|
||||||
}
|
}
|
||||||
""".trimIndent()
|
""".trimIndent()
|
||||||
|
|||||||
+1
-1
@@ -91,7 +91,7 @@ class KotlinGradleWebMultiplatformModuleBuilder : KotlinGradleAbstractMultiplatf
|
|||||||
actual val name: String = "JVM"
|
actual val name: String = "JVM"
|
||||||
}
|
}
|
||||||
|
|
||||||
fun main(args: Array<String>) {
|
fun main() {
|
||||||
embeddedServer(Netty, port = 8080, host = "127.0.0.1") {
|
embeddedServer(Netty, port = 8080, host = "127.0.0.1") {
|
||||||
val currentDir = File(".").absoluteFile
|
val currentDir = File(".").absoluteFile
|
||||||
environment.log.info("Current directory: ${"$"}currentDir")
|
environment.log.info("Current directory: ${"$"}currentDir")
|
||||||
|
|||||||
Reference in New Issue
Block a user