Skip to content

Commit

Permalink
update code style
Browse files Browse the repository at this point in the history
  • Loading branch information
potato04 committed Sep 28, 2018
1 parent c774d20 commit 1b6cc38
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions Source/Charts/Components/YAxis.swift
Original file line number Diff line number Diff line change
Expand Up @@ -151,12 +151,16 @@ open class YAxis: AxisBase
var max = _customAxisMax ? _axisMaximum : dataMax

// Make sure max is greater than min
if min > max {
if _customAxisMax && _customAxisMin {
if min > max
{
if _customAxisMax && _customAxisMin
{
(min, max) = (max, min)
} else if _customAxisMax && !_customAxisMin {
} else if _customAxisMax && !_customAxisMin
{
min = max - 1
} else if !_customAxisMax && _customAxisMin {
} else if !_customAxisMax && _customAxisMin
{
max = min + 1
}
}
Expand Down

0 comments on commit 1b6cc38

Please sign in to comment.