Skip to content

Commit

Permalink
Update x/group/keeper/invariants.go
Browse files Browse the repository at this point in the history
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
  • Loading branch information
tuantran1702 and coderabbitai[bot] authored Apr 30, 2024
1 parent 306cf5b commit 7b0116e
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions x/group/keeper/invariants.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,7 @@ func GroupTotalWeightInvariantHelper(ctx sdk.Context, storeService storetypes.KV
msg += fmt.Sprintf("PrefixScan failure on group table\n%v\n", err)
return msg, broken
}
defer func(groupIt orm.Iterator) {
err := groupIt.Close()
if err != nil {
return
}
}(groupIt)
defer groupIt.Close()

groups := make(map[uint64]group.GroupInfo)
for {
Expand Down

0 comments on commit 7b0116e

Please sign in to comment.