Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
yihuang committed May 16, 2024
1 parent 02dd650 commit 938500a
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions x/group/simulation/operations.go
Original file line number Diff line number Diff line change
Expand Up @@ -945,7 +945,6 @@ func SimulateMsgWithdrawProposal(cdc *codec.ProtoCodec, ak group.AccountKeeper,
}

_, _, err = app.SimDeliver(txGen.TxEncoder(), tx)

if err != nil {
if strings.Contains(err.Error(), "group was modified") || strings.Contains(err.Error(), "group policy was modified") {
return simtypes.NoOpMsg(group.ModuleName, msg.Type(), "no-op:group/group-policy was modified"), nil, nil
Expand Down Expand Up @@ -1051,7 +1050,6 @@ func SimulateMsgVote(cdc *codec.ProtoCodec, ak group.AccountKeeper,
}

_, _, err = app.SimDeliver(txGen.TxEncoder(), tx)

if err != nil {
if strings.Contains(err.Error(), "group was modified") || strings.Contains(err.Error(), "group policy was modified") {
return simtypes.NoOpMsg(group.ModuleName, msg.Type(), "no-op:group/group-policy was modified"), nil, nil
Expand Down

0 comments on commit 938500a

Please sign in to comment.