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

Co-authored-by: Julien Robert <julien@rbrt.fr>
This commit is contained in:
mergify[bot]
2024-09-17 11:49:10 +00:00
committed by GitHub
co-authored by Julien Robert
parent e9aece088d
commit 2ad5ab913d
149 changed files with 60 additions and 374 deletions
-1
View File
@@ -109,7 +109,6 @@ func (s *CLITestSuite) TestGenTxCmd() {
}
for _, tc := range tests {
tc := tc
dir := s.T().TempDir()
genTxFile := filepath.Join(dir, "myTx")
-1
View File
@@ -50,7 +50,6 @@ func TestMigrateGenesis(t *testing.T) {
}
for _, tc := range testCases {
tc := tc
t.Run(tc.name, func(t *testing.T) {
genesisFile := testutil.WriteToNewTempFile(t, tc.genesis)
jsonOutput, err := clitestutil.ExecTestCLICmd(
@@ -85,8 +85,6 @@ func TestValidateGenesis(t *testing.T) {
}
for _, tc := range testCases {
tc := tc
t.Run(tc.name, func(t *testing.T) {
genesisFile := testutil.WriteToNewTempFile(t, tc.genesis)
_, err := clitestutil.ExecTestCLICmd(client.Context{}, cli.ValidateGenesisCmd(tc.genMM), []string{genesisFile.Name()})