Skip to content

Commit

Permalink
Unwrap->expect
Browse files Browse the repository at this point in the history
  • Loading branch information
CriesofCarrots committed Mar 6, 2024
1 parent daedbe9 commit 393569a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cli-output/src/cli_output.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1654,8 +1654,10 @@ impl fmt::Display for CliAuthorizedVoters {
write!(f, "None")?;
}
if self.authorized_voters.len() > 1 {
let (epoch, upcoming_authorized_voter) =
self.authorized_voters.last_key_value().unwrap();
let (epoch, upcoming_authorized_voter) = self
.authorized_voters
.last_key_value()
.expect("CliAuthorizedVoters::authorized_voters.len() > 1");
writeln!(f)?;
write!(
f,
Expand Down

0 comments on commit 393569a

Please sign in to comment.