Skip to content

Commit 9f09f0b

Browse files
committed
simplified appending of external kotlin runtime options (see #47)
1 parent 4b55db9 commit 9f09f0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/kotlin/kscript/app/Kscript.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ fun collectRuntimeOptions(scriptText: List<String>): String {
239239
filter { it.startsWith(koptsPrefix) }.
240240
map { it.replaceFirst(koptsPrefix, "").trim() }.
241241
joinToString(" ").
242-
plus( if ( kscriptOpts.isNullOrBlank() ) "" else " ${kscriptOpts}" )
242+
plus(kscriptOpts ?: "")
243243
}
244244

245245

0 commit comments

Comments
 (0)