Skip to content

Commit

Permalink
Make MMMLoadableChain build in Xcode 14.2 as well
Browse files Browse the repository at this point in the history
  • Loading branch information
aleh committed Jul 23, 2023
1 parent 38f119b commit ff4990a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion MMMLoadable.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
Pod::Spec.new do |s|

s.name = "MMMLoadable"
s.version = "1.10.0"
s.version = "1.10.2"
s.summary = "A simple model for async calculations"
s.description = "#{s.summary}."
s.homepage = "https://github.com/mediamonks/#{s.name}"
Expand Down
4 changes: 2 additions & 2 deletions Sources/MMMLoadable/MMMLoadableChain.swift
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public final class MMMLoadableChain: MMMLoadable {
self.setFailedToSyncWithError(error)
case .proceed:
self.currentIndex += 1
if self.currentIndex < chain.endIndex {
if self.currentIndex < self.chain.endIndex {
self.syncNextLater()
} else {
self.setDidSyncSuccessfully()
Expand All @@ -117,7 +117,7 @@ public final class MMMLoadableChain: MMMLoadable {
} else {
self.setFailedToSyncWithError(NSError(
domain: self,
message: "Could not sync element #\(currentIndex)",
message: "Could not sync element #\(self.currentIndex)",
underlyingError: loadable.error
))
}
Expand Down

0 comments on commit ff4990a

Please sign in to comment.