chore: bump golangci-lint and fix all linting issues (#21761)
This commit is contained in:
@@ -38,7 +38,6 @@ func TestQueryParams(t *testing.T) {
|
||||
}
|
||||
|
||||
for _, tc := range cases {
|
||||
tc := tc
|
||||
t.Run(tc.name, func(t *testing.T) {
|
||||
out, err := queryServer.Params(ctx, tc.req)
|
||||
if tc.errMsg == "" {
|
||||
@@ -94,7 +93,6 @@ func TestQueryValidatorDistributionInfo(t *testing.T) {
|
||||
}
|
||||
|
||||
for _, tc := range cases {
|
||||
tc := tc
|
||||
t.Run(tc.name, func(t *testing.T) {
|
||||
out, err := queryServer.ValidatorDistributionInfo(ctx, tc.req)
|
||||
if tc.errMsg == "" {
|
||||
@@ -173,7 +171,6 @@ func TestQueryCommunityPool(t *testing.T) {
|
||||
}
|
||||
|
||||
for _, tc := range cases {
|
||||
tc := tc
|
||||
t.Run(tc.name, func(t *testing.T) {
|
||||
out, err := queryServer.CommunityPool(ctx, tc.req)
|
||||
if tc.errMsg == "" {
|
||||
|
||||
@@ -56,7 +56,6 @@ func TestMsgSetWithdrawAddress(t *testing.T) {
|
||||
}
|
||||
|
||||
for _, tc := range cases {
|
||||
tc := tc
|
||||
t.Run(tc.name, func(t *testing.T) {
|
||||
_, err := msgServer.SetWithdrawAddress(ctx, tc.msg)
|
||||
if tc.errMsg == "" {
|
||||
@@ -112,7 +111,6 @@ func TestMsgWithdrawDelegatorReward(t *testing.T) {
|
||||
}
|
||||
|
||||
for _, tc := range cases {
|
||||
tc := tc
|
||||
t.Run(tc.name, func(t *testing.T) {
|
||||
if tc.preRun != nil {
|
||||
tc.preRun()
|
||||
@@ -158,7 +156,6 @@ func TestMsgWithdrawValidatorCommission(t *testing.T) {
|
||||
}
|
||||
|
||||
for _, tc := range cases {
|
||||
tc := tc
|
||||
t.Run(tc.name, func(t *testing.T) {
|
||||
if tc.preRun != nil {
|
||||
tc.preRun()
|
||||
@@ -206,7 +203,6 @@ func TestMsgFundCommunityPool(t *testing.T) {
|
||||
}
|
||||
|
||||
for _, tc := range cases {
|
||||
tc := tc
|
||||
t.Run(tc.name, func(t *testing.T) {
|
||||
_, err := msgServer.FundCommunityPool(ctx, tc.msg) //nolint:staticcheck // Testing deprecated method
|
||||
if tc.errMsg == "" {
|
||||
@@ -267,7 +263,6 @@ func TestMsgUpdateParams(t *testing.T) {
|
||||
}
|
||||
|
||||
for _, tc := range cases {
|
||||
tc := tc
|
||||
t.Run(tc.name, func(t *testing.T) {
|
||||
_, err := msgServer.UpdateParams(ctx, tc.msg)
|
||||
if tc.errMsg == "" {
|
||||
@@ -340,7 +335,6 @@ func TestMsgCommunityPoolSpend(t *testing.T) {
|
||||
}
|
||||
|
||||
for _, tc := range cases {
|
||||
tc := tc
|
||||
t.Run(tc.name, func(t *testing.T) {
|
||||
_, err := msgServer.CommunityPoolSpend(ctx, tc.msg) //nolint:staticcheck // Testing deprecated method
|
||||
if tc.errMsg == "" {
|
||||
@@ -373,7 +367,6 @@ func TestMsgDepositValidatorRewardsPool(t *testing.T) {
|
||||
}
|
||||
|
||||
for _, tc := range cases {
|
||||
tc := tc
|
||||
t.Run(tc.name, func(t *testing.T) {
|
||||
_, err := msgServer.DepositValidatorRewardsPool(ctx, tc.msg)
|
||||
if tc.errMsg == "" {
|
||||
|
||||
Reference in New Issue
Block a user