Skip to content

Commit 76d3239

Browse files
committed
Kill the -1
1 parent ef92e59 commit 76d3239

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/PagesController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ import UIKit
3838
// MARK: Public methods
3939
extension PagesController {
4040

41-
if index > -1 && index < pages.count {
4241
public func goTo(index: Int) {
42+
if index >= 0 && index < pages.count {
4343
let direction: UIPageViewControllerNavigationDirection = (index > currentIndex) ? .Forward : .Reverse
4444
let viewController = pages[index]
4545
currentIndex = index

0 commit comments

Comments
 (0)