Skip to content

Commit

Permalink
Clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
tustvold committed Sep 1, 2023
1 parent ebbc718 commit 72f46c4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions object_store/src/http/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -277,12 +277,11 @@ impl Client {
path: to.to_string(),
source: Box::new(source),
}
.into()
}
// Some implementations return 404 instead of 409
Some(StatusCode::CONFLICT | StatusCode::NOT_FOUND) if !retry => {
retry = true;
self.create_parent_directories(&to).await?;
self.create_parent_directories(to).await?;
continue;
}
_ => Error::Request { source }.into(),
Expand Down

0 comments on commit 72f46c4

Please sign in to comment.