Skip to content

Commit

Permalink
Simplifies if-let when rebuilding bank (solana-labs#32654)
Browse files Browse the repository at this point in the history
Simplifies let-Some when rebuilding bank
  • Loading branch information
brooksprumo authored Jul 28, 2023
1 parent e1d0785 commit 965ed1a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions runtime/src/snapshot_bank_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -706,10 +706,9 @@ fn rebuild_bank_from_unarchived_snapshots(
if let Some(snapshot_unpacked_snapshots_dir_and_version) =
incremental_snapshot_unpacked_snapshots_dir_and_version
{
let (snapshot_version, bank_snapshot_info) = verify_unpacked_snapshots_dir_and_version(
Some(verify_unpacked_snapshots_dir_and_version(
snapshot_unpacked_snapshots_dir_and_version,
)?;
Some((snapshot_version, bank_snapshot_info))
)?)
} else {
None
}
Expand Down

0 comments on commit 965ed1a

Please sign in to comment.