From ecf6f63861a9f83d44623121b19c4909449b5f60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elvis=20Nu=C3=B1ez?= Date: Tue, 4 Apr 2017 11:14:58 +0200 Subject: [PATCH] Remove unused variable --- Sources/UICollectionView+Sweet.swift | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Sources/UICollectionView+Sweet.swift b/Sources/UICollectionView+Sweet.swift index c956b89..01de740 100644 --- a/Sources/UICollectionView+Sweet.swift +++ b/Sources/UICollectionView+Sweet.swift @@ -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