Skip to content

Commit

Permalink
lint moar
Browse files Browse the repository at this point in the history
  • Loading branch information
AdityaSripal committed Feb 7, 2025
1 parent 1d22ea9 commit 0c27be8
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 6 deletions.
4 changes: 1 addition & 3 deletions modules/apps/callbacks/v2/ibc_middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@ import (
"github.com/cosmos/ibc-go/v9/modules/core/api"
)

var (
_ api.IBCModule = (*IBCMiddleware)(nil)
)
var _ api.IBCModule = (*IBCMiddleware)(nil)

// IBCMiddleware implements the IBC v2 middleware interface
// with the underlying application.
Expand Down
1 change: 0 additions & 1 deletion modules/apps/callbacks/v2/v2_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,6 @@ func GetExpectedEvent(
callbackKey = types.DestinationCallbackKey
}
callbackData, err := types.GetCallbackData(packetData, version, eventPortID, remainingGas, maxCallbackGas, callbackKey)

if err != nil {
return abci.Event{}, false
}
Expand Down
2 changes: 1 addition & 1 deletion modules/apps/transfer/v2/ibc_module.go
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,6 @@ func (im *IBCModule) OnAcknowledgementPacket(ctx context.Context, sourceChannel

// UnmarshalPacketData unmarshals the ICS20 packet data based on the version and encoding
// it implements the PacketDataUnmarshaler interface
func (_ *IBCModule) UnmarshalPacketData(payload channeltypesv2.Payload) (interface{}, error) {
func (*IBCModule) UnmarshalPacketData(payload channeltypesv2.Payload) (interface{}, error) {
return types.UnmarshalPacketData(payload.Value, payload.Version, payload.Encoding)
}
2 changes: 1 addition & 1 deletion testing/mock/v2/ibc_module.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func (im IBCModule) OnTimeoutPacket(ctx context.Context, sourceChannel string, d
return nil
}

func (_ IBCModule) UnmarshalPacketData(payload channeltypesv2.Payload) (interface{}, error) {
func (IBCModule) UnmarshalPacketData(payload channeltypesv2.Payload) (interface{}, error) {
if bytes.Equal(payload.Value, mockv1.MockPacketData) {
return mockv1.MockPacketData, nil
}
Expand Down

0 comments on commit 0c27be8

Please sign in to comment.