Skip to content

Commit

Permalink
remove unnecessary map_err
Browse files Browse the repository at this point in the history
  • Loading branch information
bbalser committed Nov 4, 2023
1 parent 8d4ed14 commit 85bb26b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions file_store/src/cli/bucket.rs
Original file line number Diff line number Diff line change
Expand Up @@ -214,9 +214,9 @@ fn locate(prefix: &str, gateway: &PublicKey, buf: &[u8]) -> Result<Option<serde_
FileType::ValidatedHeartbeat => {
ValidatedHeartbeat::decode(buf).and_then(|event| event.to_value_if(pub_key))
}
FileType::SpeedtestAvg => SpeedtestAverage::decode(buf)
.map_err(Error::from)
.and_then(|event| event.to_value_if(pub_key)),
FileType::SpeedtestAvg => {
SpeedtestAverage::decode(buf).and_then(|event| event.to_value_if(pub_key))
}
FileType::CellSpeedtest => {
CellSpeedtest::decode(buf).and_then(|event| event.to_value_if(pub_key))
}
Expand Down

0 comments on commit 85bb26b

Please sign in to comment.