Skip to content

Commit

Permalink
fix(MailApiFetcher): Override ValidServerResponse<T> instead of T (#1314
Browse files Browse the repository at this point in the history
)
  • Loading branch information
PhilippeWeidmann authored Feb 28, 2024
2 parents f9e8844 + 6d9dcb0 commit 08d7c9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MailCore/API/MailApiFetcher/MailApiFetcher.swift
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public final class MailApiFetcher: ApiFetcher, MailApiFetchable {
}()

override public func perform<T: Decodable>(request: DataRequest,
decoder: JSONDecoder = ApiFetcher.decoder) async throws -> T {
decoder: JSONDecoder = ApiFetcher.decoder) async throws -> ValidServerResponse<T> {
do {
return try await super.perform(request: request.validate(statusCode: handledHttpStatus))
} catch InfomaniakError.apiError(let apiError) {
Expand Down

0 comments on commit 08d7c9f

Please sign in to comment.