Skip to content

Commit

Permalink
No need to capture self, this isn't a block
Browse files Browse the repository at this point in the history
  • Loading branch information
joemasilotti committed Mar 20, 2024
1 parent 1005ee2 commit 58abd08
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Source/Turbo Navigator/Helpers/ErrorPresenter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ public extension ErrorPresenter {
/// - error: presents the data in this error
/// - retryHandler: a user-triggered action to perform in case the error is recoverable
func presentError(_ error: Error, retryHandler: Handler?) {
let errorView = ErrorView(error: error,
shouldShowRetryButton: (retryHandler != nil)) { [unowned self] in
let errorView = ErrorView(error: error, shouldShowRetryButton: (retryHandler != nil)) {
retryHandler?()
self.removeErrorViewController()
}
Expand Down

0 comments on commit 58abd08

Please sign in to comment.