From 1aefed336f9ef305f59d3668abc8a39c550e921d Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Wed, 21 Feb 2018 13:32:31 +0100 Subject: Small style fixes contributed by tieskedh --- src/main/kotlin/pl/treksoft/kvision/form/check/RadioGroup.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/kotlin/pl/treksoft/kvision/form') diff --git a/src/main/kotlin/pl/treksoft/kvision/form/check/RadioGroup.kt b/src/main/kotlin/pl/treksoft/kvision/form/check/RadioGroup.kt index c7eb5a22..aa29de34 100644 --- a/src/main/kotlin/pl/treksoft/kvision/form/check/RadioGroup.kt +++ b/src/main/kotlin/pl/treksoft/kvision/form/check/RadioGroup.kt @@ -133,7 +133,7 @@ open class RadioGroup( } private fun getDisabledFromChildren(): Boolean { - return getChildren().filterIsInstance().map { it.disabled }.firstOrNull() ?: false + return getChildren().filterIsInstance().firstOrNull()?.disabled ?: false } private fun setDisabledToChildren(disabled: Boolean) { -- cgit