Skip to content

Commit

Permalink
chore: lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jaeseung-bae committed May 13, 2024
1 parent 86a7860 commit fdc1f49
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion crypto/keys/multisig/codec.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ const (
PubKeyAminoRoute = "tendermint/PubKeyMultisigThreshold"
)

// nolint
// Deprecated: Amino is being deprecated in the SDK. But even if you need to

Check failure on line 18 in crypto/keys/multisig/codec.go

View workflow job for this annotation

GitHub Actions / golangci-lint

ST1022: comment on exported var AminoCdc should be of the form "AminoCdc ..." (stylecheck)
// use Amino for some reason, please use `codec/legacy.Cdc` instead.
var AminoCdc = codec.NewLegacyAmino()
Expand Down
2 changes: 1 addition & 1 deletion x/fswap/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ func (k Keeper) increaseSwapCount(ctx sdk.Context) error {
}

prev := stats.SwapCount
stats.SwapCount += 1
stats.SwapCount++
if stats.SwapCount < prev {
return types.ErrInvalidState.Wrap("overflow detected")
}
Expand Down

0 comments on commit fdc1f49

Please sign in to comment.