Skip to content

Commit

Permalink
fix: use .min
Browse files Browse the repository at this point in the history
  • Loading branch information
liamaharon committed Jun 6, 2024
1 parent 276adc5 commit 60294a2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions relay/kusama/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2058,8 +2058,7 @@ pub mod migrations {

// Be kind and don't increase the deposit in case it increased (can
// happen if param change).
let deposit =
if new_deposit < old_deposit { new_deposit } else { old_deposit };
let deposit = new_deposit.min(old_deposit);
if deposit < old_deposit {
writes.saturating_inc();
<Balances as ReservableCurrency<AccountId>>::unreserve(
Expand Down

0 comments on commit 60294a2

Please sign in to comment.