From d7dad91c0bcbd820199b3a2ca0949b3e0e2fe5a2 Mon Sep 17 00:00:00 2001 From: Elvis Date: Fri, 19 Jul 2024 18:36:26 +0200 Subject: [PATCH] Fix Void return for fake --- Sources/Networking/Networking+New.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/Networking/Networking+New.swift b/Sources/Networking/Networking+New.swift index e6e7505..8303113 100644 --- a/Sources/Networking/Networking+New.swift +++ b/Sources/Networking/Networking+New.swift @@ -17,7 +17,7 @@ extension Networking { case .success(let response): if T.self == Data.self { logger.info("Successfully processed fake request to \(path, privacy: .public)") - return .success(() as! T) + return .success(Data() as! T) } else { let decoder = JSONDecoder() decoder.dateDecodingStrategy = .iso8601