Skip to content

Commit

Permalink
appease linter
Browse files Browse the repository at this point in the history
  • Loading branch information
MSalopek committed Jul 18, 2024
1 parent 285922f commit fc53420
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions x/staking/migrations/v3/store.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
//nolint:all
package v3

import (
Expand Down Expand Up @@ -30,11 +29,12 @@ func MigrateStore(ctx sdk.Context, store storetypes.KVStore, cdc codec.BinaryCod
return nil
}

//nolint:all

Check failure on line 32 in x/staking/migrations/v3/store.go

View workflow job for this annotation

GitHub Actions / golangci-lint

directive `//nolint:all` is unused (nolintlint)

Check failure on line 32 in x/staking/migrations/v3/store.go

View workflow job for this annotation

GitHub Actions / Analyze

directive `//nolint:all` is unused (nolintlint)
func migrateParamsStore(ctx sdk.Context, paramstore subspace) {
if paramstore.HasKeyTable() {
paramstore.Set(ctx, types.KeyMinCommissionRate, types.DefaultMinCommissionRate)
} else {
paramstore.WithKeyTable(types.ParamKeyTable()) //nolint:staticcheck // ignore SA1019 - false positive
paramstore.WithKeyTable(types.ParamKeyTable())
paramstore.Set(ctx, types.KeyMinCommissionRate, types.DefaultMinCommissionRate)
}
}

0 comments on commit fc53420

Please sign in to comment.