Skip to content

Commit 8606303

Browse files
committed
Refactor: Try to revert to simple conversion of errors to as exact as I can
1 parent a20f65e commit 8606303

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

modules/drdd_state/src/rest.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,7 @@ pub async fn handle_drdd(
3030
Some(epoch) => match locked.get_epoch(epoch) {
3131
Some(drdd) => Some(drdd),
3232
None => {
33-
return Err(RESTError::not_found(&format!(
34-
"DRDD in epoch {}",
35-
epoch
36-
)));
33+
return Err(RESTError::not_found(&format!("DRDD in epoch {}", epoch)));
3734
}
3835
},
3936
None => locked.get_latest(),

0 commit comments

Comments
 (0)