Skip to content

Commit

Permalink
cleanup assert (#22495)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffwashington authored Jan 14, 2022
1 parent 56ac26f commit 7d7228c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/src/accounts_db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3609,7 +3609,7 @@ impl AccountsDb {
// cleaned yet. That means this must be rpc access and not replay/banking at the
// very least. Note that purge shouldn't occur even for RPC as caller must hold all
// of ancestor slots..
assert!(load_hint == LoadHint::Unspecified);
assert_eq!(load_hint, LoadHint::Unspecified);

// Everything being assert!()-ed, let's panic!() here as it's an error condition
// after all....
Expand Down

0 comments on commit 7d7228c

Please sign in to comment.