Skip to content

Commit

Permalink
remove redundant for loop
Browse files Browse the repository at this point in the history
  • Loading branch information
fahimahmedx authored Dec 20, 2023
1 parent f20b0a9 commit 9629c37
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions x/paramfilter/gov_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,7 @@ func (pbl ParamBlockList) handleParameterChangeProposal(
if pbl.IsBlocked(c.Subspace, c.Key) {
return ErrBlockedParameter
}
}

for _, c := range p.Changes {
ss, ok := pk.GetSubspace(c.Subspace)
if !ok {
return sdkerrors.Wrap(proposal.ErrUnknownSubspace, c.Subspace)
Expand Down

0 comments on commit 9629c37

Please sign in to comment.