Skip to content

Commit

Permalink
Fix Void return for fake
Browse files Browse the repository at this point in the history
  • Loading branch information
3lvis committed Jul 19, 2024
1 parent 14fadb6 commit d7dad91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Networking/Networking+New.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d7dad91

Please # to comment.