chore: bump golangci-lint and fix all linting issues (#21761)
This commit is contained in:
@@ -100,7 +100,6 @@ func TestBuilderWithAux(t *testing.T) {
|
||||
{"happy case", func() {}, false},
|
||||
}
|
||||
for _, tc := range testcases {
|
||||
tc := tc
|
||||
t.Run(tc.name, func(t *testing.T) {
|
||||
txBuilder, txSig = makeTxBuilder(t)
|
||||
|
||||
|
||||
@@ -114,8 +114,6 @@ func getBlocksForTxResults(clientCtx client.Context, resTxs []*coretypes.ResultT
|
||||
resBlocks := make(map[int64]*coretypes.ResultBlock)
|
||||
|
||||
for _, resTx := range resTxs {
|
||||
resTx := resTx
|
||||
|
||||
if _, ok := resBlocks[resTx.Height]; !ok {
|
||||
resBlock, err := node.Block(context.Background(), &resTx.Height)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user