From 98a0662aafe8ff852184e68251451ac6052456f5 Mon Sep 17 00:00:00 2001 From: tobias <thinkdifferent055@gmail.com> Date: Thu, 23 Dec 2021 12:54:56 +0100 Subject: [PATCH] Remove optional datatype in reponse handler --- AppleLibs/Network/Requests/DataManager.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AppleLibs/Network/Requests/DataManager.swift b/AppleLibs/Network/Requests/DataManager.swift index 664c71a..f1eb9c0 100644 --- a/AppleLibs/Network/Requests/DataManager.swift +++ b/AppleLibs/Network/Requests/DataManager.swift @@ -12,13 +12,13 @@ import Logging public protocol HttpResponseFilter { @available(iOS 15.0.0, *) - func handleResponse(request: Request, data: Data?, dataMapper: DataMapper?, sender: Any?) async throws -> Any? + func handleResponse(request: Request, data: Data?, dataMapper: DataMapper?, sender: Any?) async throws -> Any } public protocol HttpSuccessFilter { @available(iOS 15.0.0, *) - func handleResponse(data: Data?, response: HTTPURLResponse, dataMapper: DataMapper?, sender: Any?) async throws -> Any? + func handleResponse(data: Data?, response: HTTPURLResponse, dataMapper: DataMapper?, sender: Any?) async throws -> Any } public protocol DataManagerDelegate -- GitLab