Skip to content

Commit

Permalink
fixed not receive the failure callback when error occurs
Browse files Browse the repository at this point in the history
  • Loading branch information
JoaoMoreiraEVIO committed Aug 12, 2022
1 parent f8ec8e9 commit d038e2f
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,6 @@ public extension RequestProtocol {
// MARK: - Private Functions

private func receiveError(_ error: LocationError) {
guard !error.isDataDiscarded else {
// discarded data do not produce any error.
return
}

// Otherwise error is dispatched
dispatchData(.failure(error))
if evictionPolicy.contains(.onError) { // if in case of error we should cancel the request.
Expand Down

0 comments on commit d038e2f

Please sign in to comment.