From 58abd0843ffb1f5e5d76acc7d58e8335cef44fb4 Mon Sep 17 00:00:00 2001 From: Joe Masilotti Date: Tue, 19 Mar 2024 21:17:13 -0700 Subject: [PATCH] No need to capture self, this isn't a block --- Source/Turbo Navigator/Helpers/ErrorPresenter.swift | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Source/Turbo Navigator/Helpers/ErrorPresenter.swift b/Source/Turbo Navigator/Helpers/ErrorPresenter.swift index 8b8894b..c2f583e 100644 --- a/Source/Turbo Navigator/Helpers/ErrorPresenter.swift +++ b/Source/Turbo Navigator/Helpers/ErrorPresenter.swift @@ -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() }