Skip to content

Commit 358bebb

Browse files
committed
lint
1 parent 07ad8ae commit 358bebb

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

server/v2/cometbft/abci_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import (
66
"encoding/json"
77
"errors"
88
"io"
9+
"reflect"
910
"strings"
1011
"sync"
1112
"testing"
@@ -15,11 +16,10 @@ import (
1516
abciproto "github.com/cometbft/cometbft/api/cometbft/abci/v1"
1617
v1 "github.com/cometbft/cometbft/api/cometbft/types/v1"
1718
"github.com/cosmos/gogoproto/proto"
19+
gogoproto "github.com/cosmos/gogoproto/proto"
1820
gogotypes "github.com/cosmos/gogoproto/types"
1921
"github.com/stretchr/testify/require"
2022

21-
"reflect"
22-
2323
appmodulev2 "cosmossdk.io/core/appmodule/v2"
2424
"cosmossdk.io/core/server"
2525
"cosmossdk.io/core/store"
@@ -35,9 +35,9 @@ import (
3535
"cosmossdk.io/server/v2/stf/branch"
3636
"cosmossdk.io/server/v2/stf/mock"
3737
consensustypes "cosmossdk.io/x/consensus/types"
38+
3839
"github.com/cosmos/cosmos-sdk/testutil/testdata"
3940
sdk "github.com/cosmos/cosmos-sdk/types"
40-
gogoproto "github.com/cosmos/gogoproto/proto"
4141
)
4242

4343
var (
@@ -810,7 +810,7 @@ func setUpConsensus(t *testing.T, gasLimit uint64, mempool mempool.Mempool[mock.
810810
}, nil
811811
})
812812

813-
var helloFooHandler = func(ctx context.Context, msg transaction.Msg) (msgResp transaction.Msg, err error) {
813+
helloFooHandler := func(ctx context.Context, msg transaction.Msg) (msgResp transaction.Msg, err error) {
814814
typedReq := msg.(*testdata.SayHelloRequest)
815815
handler := testdata.QueryImpl{}
816816
typedResp, err := handler.SayHello(ctx, typedReq)

server/v2/cometbft/utils.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,6 @@ func gRPCErrorToSDKError(err error) *abci.QueryResponse {
289289
res.Log = err.Error()
290290
}
291291
return res
292-
293292
}
294293

295294
status, ok := grpcstatus.FromError(err)

0 commit comments

Comments
 (0)