Skip to content

Commit

Permalink
Add nolint lines for unused types
Browse files Browse the repository at this point in the history
  • Loading branch information
h5law committed Jul 20, 2023
1 parent 80c0319 commit e84775a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ibc/client/types/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ func (cs *ClientState) Validate() error {
return nil
}

//nolint:unused // types defined for future use
type (
statusInnerPayload struct{}
statusPayload struct {
Expand Down Expand Up @@ -94,6 +95,7 @@ func (cs *ClientState) Initialise(clientStore modules.ProvableStore, consensusSt
return nil
}

//nolint:unused // types defined for future use
type (
verifyMembershipInnerPayload struct {
Height modules.Height `json:"height"`
Expand Down Expand Up @@ -146,6 +148,7 @@ func (cs *ClientState) VerifyMembership(
return nil
}

//nolint:unused // types defined for future use
type (
verifyNonMembershipInnerPayload struct {
Height modules.Height `json:"height"`
Expand Down Expand Up @@ -196,6 +199,7 @@ func (cs *ClientState) VerifyNonMembership(
return nil
}

//nolint:unused // types defined for future use
type (
checkForMisbehaviourInnerPayload struct {
ClientMessage clientMessage `json:"client_message"`
Expand Down
3 changes: 3 additions & 0 deletions ibc/client/types/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"github.com/pokt-network/pocket/shared/modules"
)

//nolint:unused // types defined for future use
type (
clientMessage struct {
Header *Header `json:"header,omitempty"`
Expand Down Expand Up @@ -48,6 +49,7 @@ func (cs *ClientState) VerifyClientMessage(clientStore modules.ProvableStore, cl
return nil
}

//nolint:unused // types defined for future use
type (
updateStateInnerPayload struct {
ClientMessage clientMessage `json:"client_message"`
Expand Down Expand Up @@ -83,6 +85,7 @@ func (cs *ClientState) UpdateState(clientStore modules.ProvableStore, clientMsg
return clientMsg.(*Header).Height, nil
}

//nolint:unused // types defined for future use
type (
updateStateOnMisbehaviourInnerPayload struct {
ClientMessage clientMessage `json:"client_message"`
Expand Down
2 changes: 2 additions & 0 deletions ibc/client/types/upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"github.com/pokt-network/pocket/shared/modules"
)

//nolint:unused // types defined for future use
type (
verifyUpgradeAndUpdateStateInnerPayload struct {
UpgradeClientState modules.ClientState `json:"upgrade_client_state"`
Expand All @@ -26,6 +27,7 @@ func (cs *ClientState) VerifyUpgradeAndUpdateState(
upgradedConsState modules.ConsensusState,
proofUpgradeClient, proofUpgradeConsState []byte,
) error {
//nolint:gocritic // Commented out code is for future us
/*
wasmUpgradeClientState, ok := upgradedClient.(*ClientState)
if !ok {
Expand Down

0 comments on commit e84775a

Please sign in to comment.