Skip to content

Commit

Permalink
remove unnecessary wrapping of function
Browse files Browse the repository at this point in the history
  • Loading branch information
crodriguezvega committed Jun 25, 2024
1 parent 9c5ae03 commit c2a6bc6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions modules/apps/transfer/ibc_module.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,9 +191,7 @@ func (im IBCModule) OnRecvPacket(

ack := channeltypes.NewResultAcknowledgement([]byte{byte(1)})

defer func() {
events.EmitOnRecvPacketEvent(ctx, data, ack, ackErr)
}()
defer events.EmitOnRecvPacketEvent(ctx, data, ack, ackErr)

data, ackErr = im.getICS20PacketData(ctx, packet.GetData(), packet.GetDestPort(), packet.GetDestChannel())
if ackErr != nil {
Expand Down

0 comments on commit c2a6bc6

Please sign in to comment.