From 3e1fd4dad0919011925b1f4315957a97091c885e Mon Sep 17 00:00:00 2001 From: apfitzge Date: Mon, 13 Jun 2022 11:12:33 -0500 Subject: [PATCH] snapshot_utils.rs: remove unnecessary sort (#25893) --- runtime/src/snapshot_utils.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/runtime/src/snapshot_utils.rs b/runtime/src/snapshot_utils.rs index 08295e7e9ca0b9..ac08be28d92271 100644 --- a/runtime/src/snapshot_utils.rs +++ b/runtime/src/snapshot_utils.rs @@ -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"))?;