Skip to content

Commit a155ab3

Browse files
committed
Style updated for PR
1 parent 9f41250 commit a155ab3

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

Source/Charts/Data/Implementations/Standard/BarChartDataEntry.swift

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,12 @@ open class BarChartDataEntry: ChartDataEntry
123123
@objc open func calcPosNegSum()
124124
{
125125
(_negativeSum, _positiveSum) = _yVals?.reduce(into: (0,0)) { (result, y) in
126-
if y < 0 {
126+
if y < 0
127+
{
127128
result.0 += -y
128-
} else {
129+
}
130+
else
131+
{
129132
result.1 += y
130133
}
131134
} ?? (0,0)
@@ -138,9 +141,7 @@ open class BarChartDataEntry: ChartDataEntry
138141
/// - Returns:
139142
@objc open func calcRanges()
140143
{
141-
guard let values = yValues, !values.isEmpty else {
142-
return
143-
}
144+
guard let values = yValues, !values.isEmpty else { return }
144145

145146
if _ranges == nil
146147
{

0 commit comments

Comments
 (0)