Skip to content

Commit

Permalink
Style updated for PR
Browse files Browse the repository at this point in the history
  • Loading branch information
jjatie committed Apr 11, 2019
1 parent 9f41250 commit a155ab3
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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
{
Expand Down

0 comments on commit a155ab3

Please sign in to comment.