diff options
author | Robert Jaros <rjaros@finn.pl> | 2019-03-23 21:57:14 +0100 |
---|---|---|
committer | Robert Jaros <rjaros@finn.pl> | 2019-03-23 21:57:14 +0100 |
commit | c56ddc135c7caa9a9b62ced9425544d599e9eb69 (patch) | |
tree | 64b1264c9bda8c9df975944a18997a84713449bd /kvision-modules/kvision-chart/src/main/kotlin/pl/treksoft/kvision/chart | |
parent | 514d95a8f3f16b11b406bcfc9028cbf8d662227e (diff) | |
download | kvision-c56ddc135c7caa9a9b62ced9425544d599e9eb69.tar.gz kvision-c56ddc135c7caa9a9b62ced9425544d599e9eb69.tar.bz2 kvision-c56ddc135c7caa9a9b62ced9425544d599e9eb69.zip |
Code style fixes.
Diffstat (limited to 'kvision-modules/kvision-chart/src/main/kotlin/pl/treksoft/kvision/chart')
-rw-r--r-- | kvision-modules/kvision-chart/src/main/kotlin/pl/treksoft/kvision/chart/Configuration.kt | 6 |
1 files changed, 3 insertions, 3 deletions
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<dynamic>.checkSingleValue(): dynamic { - if (this.size == 1) { - return this[0] + return if (this.size == 1) { + this[0] } else { - return this + this } } |