chore: bump golangci-lint and fix all linting issues (#21761)

This commit is contained in:
Julien Robert
2024-09-16 19:11:19 +00:00
committed by GitHub
parent 52ba264c80
commit cbdfd9bdfa
186 changed files with 114 additions and 455 deletions
-1
View File
@@ -72,7 +72,6 @@ func TestPromptParseInteger(t *testing.T) {
}
for _, tc := range values {
tc := tc
t.Run(tc.in, func(t *testing.T) {
origStdin := readline.Stdin
defer func() {
-5
View File
@@ -160,8 +160,6 @@ func (s *CLITestSuite) TestNewCmdSubmitProposal() {
}
for _, tc := range testCases {
tc := tc
s.Run(tc.name, func() {
cmd := cli.NewCmdSubmitProposal()
@@ -256,8 +254,6 @@ func (s *CLITestSuite) TestNewCmdSubmitLegacyProposal() {
}
for _, tc := range testCases {
tc := tc
s.Run(tc.name, func() {
cmd := cli.NewCmdSubmitLegacyProposal()
@@ -360,7 +356,6 @@ func (s *CLITestSuite) TestNewCmdWeightedVote() {
}
for _, tc := range testCases {
tc := tc
s.Run(tc.name, func() {
cmd := cli.NewCmdWeightedVote()
out, err := clitestutil.ExecTestCLICmd(s.clientCtx, cmd, tc.args)
-4
View File
@@ -193,8 +193,6 @@ func TestGetPaginatedVotes(t *testing.T) {
},
},
} {
tc := tc
t.Run(tc.description, func(t *testing.T) {
marshaled := make([][]byte, len(tc.msgs))
clientCtx := client.Context{}.
@@ -298,8 +296,6 @@ func TestGetSingleVote(t *testing.T) {
},
},
} {
tc := tc
t.Run(tc.description, func(t *testing.T) {
marshaled := make([][]byte, len(tc.msgs))
clientCtx := client.Context{}.