Skip to content

Commit

Permalink
ci: use same version for local and ci golangci-lint
Browse files Browse the repository at this point in the history
  • Loading branch information
hacheigriega committed Nov 27, 2024
1 parent 748536b commit 72c52a3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: 1.21.3
go-version: 1.21.6
check-latest: true
- uses: golangci/golangci-lint-action@v3
with:
Expand Down
5 changes: 1 addition & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -146,11 +146,8 @@ fmt:
### Linting ###
###############################################################################

golangci_version=v1.61.0

lint-install:
@echo "--> Installing golangci-lint $(golangci_version)"
@go install github.com/golangci/golangci-lint/cmd/golangci-lint@$(golangci_version)
@go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest

lint:
@echo "--> Running linter"
Expand Down
6 changes: 3 additions & 3 deletions x/vesting/keeper/msg_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ func (m msgServer) Clawback(goCtx context.Context, msg *types.MsgClawback) (*typ

// coinsMin returns the minimum of its inputs for all denominations.
func coinsMin(a, b sdk.Coins) sdk.Coins {
min := sdk.NewCoins()
minCoins := sdk.NewCoins()
for _, coinA := range a {
denom := coinA.Denom
bAmt := b.AmountOfNoDenomValidation(denom)
Expand All @@ -267,8 +267,8 @@ func coinsMin(a, b sdk.Coins) sdk.Coins {
minAmt = bAmt
}
if minAmt.IsPositive() {
min = min.Add(sdk.NewCoin(denom, minAmt))
minCoins = minCoins.Add(sdk.NewCoin(denom, minAmt))
}
}
return min
return minCoins
}

0 comments on commit 72c52a3

Please sign in to comment.