diff --git a/runtime/src/snapshot_utils.rs b/runtime/src/snapshot_utils.rs index c432fea0a669ef..a8d6a5c0616b6f 100644 --- a/runtime/src/snapshot_utils.rs +++ b/runtime/src/snapshot_utils.rs @@ -4365,8 +4365,6 @@ mod tests { assert!(remove_bank_snapshot(bank.slot(), bank_snapshots_dir).is_ok()); // When the bank snapshot is removed, all the snapshot hardlink directories should be removed. - hardlink_dirs.iter().all(|dir| { - assert!(fs::metadata(hardlink_dir).is_err()); - }); + assert!(hardlink_dirs.iter().all(|dir| fs::metadata(dir).is_err())); } }