Skip to content

Commit

Permalink
Update Sources/Experiment/ExperimentClient.swift
Browse files Browse the repository at this point in the history
Co-authored-by: Brian Giori <[email protected]>
  • Loading branch information
tyiuhc and bgiori authored Jan 27, 2024
1 parent c650a83 commit cb3566f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Sources/Experiment/ExperimentClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -679,11 +679,10 @@ internal class DefaultExperimentClient : NSObject, ExperimentClient {
}

private func shouldRetryFetch(_ e: Error) -> Bool {
if (e is FetchError) {
let fetchError = e as! FetchError
return fetchError.statusCode < 400 || fetchError.statusCode >= 500 || fetchError.statusCode == 429
guard let e = e as FetchError else {
return true
}
return true
return fetchError.statusCode < 400 || fetchError.statusCode >= 500 || fetchError.statusCode == 429
}
}

Expand Down

0 comments on commit cb3566f

Please sign in to comment.