Skip to content

Commit

Permalink
style(x/gov): invert & simplify EndBlocker conditions for expedited p…
Browse files Browse the repository at this point in the history
…roposals (#16850)
  • Loading branch information
odeke-em authored Jul 6, 2023
1 parent 4b557c9 commit 101992a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/gov/abci.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ func EndBlocker(ctx sdk.Context, keeper *keeper.Keeper) error {
// the deposit at this point since the proposal is converted to regular.
// As a result, the deposits are either deleted or refunded in all cases
// EXCEPT when an expedited proposal fails.
if !(proposal.Expedited && !passes) {
if passes || !proposal.Expedited {
if burnDeposits {
err = keeper.DeleteAndBurnDeposits(ctx, proposal.Id)
} else {
Expand Down

0 comments on commit 101992a

Please sign in to comment.