Skip to content

Commit

Permalink
Update object_store/src/client/header.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Raphael Taylor-Davies <[email protected]>
  • Loading branch information
universalmind303 and tustvold authored Sep 19, 2023
1 parent 626fed4 commit 05194a0
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions object_store/src/client/header.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,13 +100,8 @@ pub fn header_meta(
let e_tag = e_tag.to_str().context(BadHeaderSnafu)?;
Some(e_tag.to_string())
}
None => {
if cfg.etag_required {
return Err(Error::MissingEtag);
} else {
None
}
}
None if cfg.etag_required => return Err(Error::MissingEtag),
None => None,
};

let content_length = headers
Expand Down

0 comments on commit 05194a0

Please sign in to comment.