From c56ddc135c7caa9a9b62ced9425544d599e9eb69 Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Sat, 23 Mar 2019 21:57:14 +0100 Subject: Code style fixes. --- .../src/main/kotlin/pl/treksoft/kvision/chart/Configuration.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'kvision-modules/kvision-chart/src/main') diff --git a/kvision-modules/kvision-chart/src/main/kotlin/pl/treksoft/kvision/chart/Configuration.kt b/kvision-modules/kvision-chart/src/main/kotlin/pl/treksoft/kvision/chart/Configuration.kt index 7b1cddd6..0925a0c8 100644 --- a/kvision-modules/kvision-chart/src/main/kotlin/pl/treksoft/kvision/chart/Configuration.kt +++ b/kvision-modules/kvision-chart/src/main/kotlin/pl/treksoft/kvision/chart/Configuration.kt @@ -911,9 +911,9 @@ fun Configuration.toJs(i18nTranslator: (String) -> (String)): Chart.ChartConfigu } private fun Array.checkSingleValue(): dynamic { - if (this.size == 1) { - return this[0] + return if (this.size == 1) { + this[0] } else { - return this + this } } -- cgit