aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin
diff options
context:
space:
mode:
authorRobert Jaros <rjaros@finn.pl>2018-01-29 20:58:39 +0100
committerRobert Jaros <rjaros@finn.pl>2018-01-29 20:58:39 +0100
commitd80fcaadad307070509fb6a4e2e41f5929be24ac (patch)
treea05f744c13c64d3fe0caf70840eb9863ac97be47 /src/main/kotlin
parentb6f49d0899265a5b0bcf1b79d5bf11184d446816 (diff)
downloadkvision-d80fcaadad307070509fb6a4e2e41f5929be24ac.tar.gz
kvision-d80fcaadad307070509fb6a4e2e41f5929be24ac.tar.bz2
kvision-d80fcaadad307070509fb6a4e2e41f5929be24ac.zip
Style fix
Diffstat (limited to 'src/main/kotlin')
-rw-r--r--src/main/kotlin/pl/treksoft/kvision/form/Form.kt1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/kotlin/pl/treksoft/kvision/form/Form.kt b/src/main/kotlin/pl/treksoft/kvision/form/Form.kt
index ac3dfab7..1f97311d 100644
--- a/src/main/kotlin/pl/treksoft/kvision/form/Form.kt
+++ b/src/main/kotlin/pl/treksoft/kvision/form/Form.kt
@@ -110,5 +110,6 @@ fun Map<String, Any?>.date(key: String): Date? = this[key] as? Date
fun Map<String, Any?>.asJson(): Json {
val array = this.entries.map { it.component1() to it.component2() }.toTypedArray()
+ @Suppress("SpreadOperator")
return kotlin.js.json(*array)
}