Skip to content

Commit d038e2f

Browse files
fixed not receive the failure callback when error occurs
1 parent f8ec8e9 commit d038e2f

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

Sources/SwiftLocation/Request/Abstract Request/RequestProtocol+Extension.swift

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,6 @@ public extension RequestProtocol {
8383
// MARK: - Private Functions
8484

8585
private func receiveError(_ error: LocationError) {
86-
guard !error.isDataDiscarded else {
87-
// discarded data do not produce any error.
88-
return
89-
}
90-
9186
// Otherwise error is dispatched
9287
dispatchData(.failure(error))
9388
if evictionPolicy.contains(.onError) { // if in case of error we should cancel the request.

0 commit comments

Comments
 (0)