Skip to content

Commit

Permalink
Update to Swift 2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
diogoguimaraes committed Mar 29, 2016
1 parent eb87e87 commit 0cb56a2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Source/Paginator/Paginator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public class Paginator<T>: PaginatorProtocol {
*/
public func getNext() -> Promise<[T]> {
defer {
currentPage++
currentPage += 1

objc_sync_exit(self.currentPage)
}
Expand Down
2 changes: 1 addition & 1 deletion Source/Paginator/PaginatorProtocol.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import PromiseKit
protocol PaginatorProtocol {

/// Paginator generic type.
typealias T
associatedtype T

/**
A closure to get a promise with the total number of elements.
Expand Down

0 comments on commit 0cb56a2

Please sign in to comment.