From a155ab3e0129da7c2b1533860dcd3a0a83f45842 Mon Sep 17 00:00:00 2001 From: Jacob Christie Date: Thu, 11 Apr 2019 07:12:16 -0300 Subject: [PATCH] Style updated for PR --- .../Implementations/Standard/BarChartDataEntry.swift | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Source/Charts/Data/Implementations/Standard/BarChartDataEntry.swift b/Source/Charts/Data/Implementations/Standard/BarChartDataEntry.swift index f0e8eae4b3..ff9ff2b212 100644 --- a/Source/Charts/Data/Implementations/Standard/BarChartDataEntry.swift +++ b/Source/Charts/Data/Implementations/Standard/BarChartDataEntry.swift @@ -123,9 +123,12 @@ open class BarChartDataEntry: ChartDataEntry @objc open func calcPosNegSum() { (_negativeSum, _positiveSum) = _yVals?.reduce(into: (0,0)) { (result, y) in - if y < 0 { + if y < 0 + { result.0 += -y - } else { + } + else + { result.1 += y } } ?? (0,0) @@ -138,9 +141,7 @@ open class BarChartDataEntry: ChartDataEntry /// - Returns: @objc open func calcRanges() { - guard let values = yValues, !values.isEmpty else { - return - } + guard let values = yValues, !values.isEmpty else { return } if _ranges == nil {