Skip to content

Commit

Permalink
Prettier stride here (Closes #880)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielgindi committed Mar 31, 2016
1 parent d83cd82 commit a18da15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Charts/Classes/Renderers/LineChartRenderer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ public class LineChartRenderer: LineRadarChartRenderer
}

// create a new path
for x in from + 1 ..< max(from + 1, Int(ceil(CGFloat(to - from) * phaseX + CGFloat(from))))
for x in (from + 1).stride(to: Int(ceil(CGFloat(to - from) * phaseX + CGFloat(from))), by: 1)
{
guard let e = dataSet.entryForIndex(x) else { continue }

Expand Down

0 comments on commit a18da15

Please sign in to comment.