Skip to content

Commit

Permalink
No linter warning
Browse files Browse the repository at this point in the history
  • Loading branch information
alpe committed Nov 8, 2022
1 parent 5aed79c commit cc8d9bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions x/wasm/types/authz.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,8 @@ func AcceptGrantedMessage[T AuthzableWasmMsg](ctx sdk.Context, grants []Contract
// finally do limit state updates in result
switch {
case result.DeleteLimit:
updatedGrants := append(grants[0:i], grants[i+1:]...)
if len(updatedGrants) == 0 { // remove when empty
updatedGrants := append(grants[0:i], grants[i+1:]...) //nolint:gocritic
if len(updatedGrants) == 0 { // remove when empty
return authztypes.AcceptResponse{Accept: true, Delete: true}, nil
}
newAuthz := factory.NewAuthz(updatedGrants)
Expand Down

0 comments on commit cc8d9bd

Please sign in to comment.