mirror of
https://github.com/aljazceru/cdk.git
synced 2026-02-19 03:56:22 +01:00
Fixed clippy
This commit is contained in:
@@ -270,7 +270,7 @@ impl HttpClient {
|
||||
match result.as_ref() {
|
||||
Err(Error::HttpError(status_code, _)) => {
|
||||
let status_code = status_code.to_owned().unwrap_or_default();
|
||||
if status_code >= 400 && status_code <= 499 {
|
||||
if (400..=499).contains(&status_code) {
|
||||
// 4xx errors won't be 'solved' by retrying
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user