Skip to content

Commit

Permalink
Remove unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
3lvis committed Apr 4, 2017
1 parent 86d1c08 commit ecf6f63
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Sources/UICollectionView+Sweet.swift
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,9 @@

private class func nextIndexPath(to indexPath: IndexPath, offset: Int = 0, source: [IndexPath]) -> IndexPath? {
var found = false
let indexPaths = source
var skippedResults = offset

for currentIndexPath in indexPaths {
for currentIndexPath in source {
if found == true {
if skippedResults <= 0 {
return currentIndexPath
Expand Down

0 comments on commit ecf6f63

Please sign in to comment.