aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/pl/treksoft/kvision/form
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/kotlin/pl/treksoft/kvision/form')
-rw-r--r--src/main/kotlin/pl/treksoft/kvision/form/Form.kt3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/kotlin/pl/treksoft/kvision/form/Form.kt b/src/main/kotlin/pl/treksoft/kvision/form/Form.kt
index 7d429c2e..62d22de9 100644
--- a/src/main/kotlin/pl/treksoft/kvision/form/Form.kt
+++ b/src/main/kotlin/pl/treksoft/kvision/form/Form.kt
@@ -54,7 +54,8 @@ private class FormMapWrapper<out V>(private val map: Map<String, V>) : Map<Strin
override val size: Int get() = map.size
override fun isEmpty(): Boolean = map.isEmpty()
override fun containsKey(key: String): Boolean =
- if (key.indexOf('.') != -1) map.containsKey(key) else !(map.containsKey("$key.time") || map.containsKey("$key.size"))
+ if (key.indexOf('.') != -1) map.containsKey(key) else
+ !(map.containsKey("$key.time") || map.containsKey("$key.size"))
override fun containsValue(value: @UnsafeVariance V): Boolean = map.containsValue(value)
override fun get(key: String): V? = map[key]