Skip to content

Commit

Permalink
remove nolint, usage is broken
Browse files Browse the repository at this point in the history
  • Loading branch information
kocubinski committed May 11, 2024
1 parent 70156d0 commit b3d165c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 18 deletions.
15 changes: 1 addition & 14 deletions runtime/v2/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,29 +7,16 @@ replace (
cosmossdk.io/api => ../../api
cosmossdk.io/core => ../../core
cosmossdk.io/depinject => ../../depinject
cosmossdk.io/server/v2 => ../../server/v2
cosmossdk.io/server/v2/appmanager => ../../server/v2/appmanager
cosmossdk.io/server/v2/stf => ../../server/v2/stf
cosmossdk.io/store/v2 => ../../store/v2
cosmossdk.io/x/accounts => ../../x/accounts
cosmossdk.io/x/auth => ../../x/auth
cosmossdk.io/x/authz => ../../x/authz
cosmossdk.io/x/bank => ../../x/bank
cosmossdk.io/x/circuit => ../../x/circuit
cosmossdk.io/x/consensus => ../../x/consensus
cosmossdk.io/x/distribution => ../../x/distribution
cosmossdk.io/x/evidence => ../../x/evidence
cosmossdk.io/x/feegrant => ../../x/feegrant
cosmossdk.io/x/gov => ../../x/gov
cosmossdk.io/x/group => ../../x/group
cosmossdk.io/x/mint => ../../x/mint
cosmossdk.io/x/nft => ../../x/nft
cosmossdk.io/x/params => ../../x/params
cosmossdk.io/x/protocolpool => ../../x/protocolpool
cosmossdk.io/x/slashing => ../../x/slashing
cosmossdk.io/x/staking => ../../x/staking
cosmossdk.io/x/tx => ../../x/tx
cosmossdk.io/x/upgrade => ../../x/upgrade
github.com/cosmos/cosmos-sdk => ../..
)

Expand All @@ -44,7 +31,6 @@ require (
cosmossdk.io/x/tx v0.13.3
github.com/cosmos/cosmos-sdk v0.51.0
github.com/cosmos/gogoproto v1.4.12
github.com/golang/protobuf v1.5.4
golang.org/x/exp v0.0.0-20240506185415-9bf2ced13842
google.golang.org/grpc v1.63.2
google.golang.org/protobuf v1.34.1
Expand Down Expand Up @@ -108,6 +94,7 @@ require (
github.com/gogo/protobuf v1.3.2 // indirect
github.com/golang/glog v1.2.0 // indirect
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
github.com/golang/protobuf v1.5.4 // indirect
github.com/golang/snappy v0.0.4 // indirect
github.com/google/btree v1.1.2 // indirect
github.com/google/flatbuffers v2.0.8+incompatible // indirect
Expand Down
8 changes: 4 additions & 4 deletions server/v2/stf/core_router_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,10 @@ func (m *msgRouterService) CanInvoke(ctx context.Context, typeURL string) error
// Use InvokeUntyped if the response type is not known.
func (m *msgRouterService) InvokeTyped(
ctx context.Context,
msg, resp protoiface.MessageV1, // nolint:staticcheck // interface types implicitly store a pointer
msg, resp protoiface.MessageV1,
) error {
var err error
resp, err = m.handler(ctx, msg) // nolint:ineffassign,staticcheck // interface types implicitly store a pointer
resp, err = m.handler(ctx, msg)
return err
}

Expand Down Expand Up @@ -117,10 +117,10 @@ func (m *queryRouterService) CanInvoke(ctx context.Context, typeURL string) erro
// Use InvokeUntyped if the response type is not known.
func (m *queryRouterService) InvokeTyped(
ctx context.Context,
req, resp protoiface.MessageV1, // nolint:staticcheck // interface types implicitly store a pointer
req, resp protoiface.MessageV1,
) error {
var err error
resp, err = m.handler(ctx, req) // nolint:ineffassign,staticcheck // interface types implicitly store a pointer
resp, err = m.handler(ctx, req)
return err
}

Expand Down

0 comments on commit b3d165c

Please sign in to comment.