Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

snapshot_utils.rs: remove unnecessary sort #25893

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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