Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kosegor committed Sep 26, 2023
1 parent 246537f commit 7f6db2f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions x/metoken/keeper/metoken.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ func (k Keeper) addIndexes(
}
}

checkers.MergeErrors(indexErrs, k.validateInLeverage(index))
indexErrs = checkers.MergeErrors(indexErrs, k.validateInLeverage(index))

if len(indexErrs) > 0 {
allErrs = append(allErrs, indexErrs...)
Expand Down Expand Up @@ -248,7 +248,7 @@ func (k Keeper) updateIndexes(
}
}

checkers.MergeErrors(indexErrs, k.validateInLeverage(index))
indexErrs = checkers.MergeErrors(indexErrs, k.validateInLeverage(index))

if len(indexErrs) > 0 {
allErrs = append(allErrs, indexErrs...)
Expand Down

0 comments on commit 7f6db2f

Please sign in to comment.