Skip to content

Commit

Permalink
snapshot_utils.rs: remove unnecessary sort (#25893)
Browse files Browse the repository at this point in the history
  • Loading branch information
apfitzge authored Jun 13, 2022
1 parent 04969a2 commit 3e1fd4d
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion runtime/src/snapshot_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1551,7 +1551,6 @@ fn verify_unpacked_snapshots_dir_and_version(
if bank_snapshots.len() > 1 {
return Err(get_io_error("invalid snapshot format"));
}
bank_snapshots.sort_unstable();
let root_paths = bank_snapshots
.pop()
.ok_or_else(|| get_io_error("No snapshots found in snapshots directory"))?;
Expand Down

0 comments on commit 3e1fd4d

Please sign in to comment.