Skip to content

Commit 50e3edc

Browse files
chore: removed useless error handling
1 parent b326128 commit 50e3edc

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

modules/core/04-channel/keeper/grpc_query.go

+1-10
Original file line numberDiff line numberDiff line change
@@ -555,16 +555,7 @@ func (k Keeper) NextSequenceSend(c context.Context, req *types.QueryNextSequence
555555

556556
ctx := sdk.UnwrapSDKContext(c)
557557

558-
_, found := k.GetChannel(ctx, req.PortId, req.ChannelId)
559-
if !found {
560-
return nil, status.Error(
561-
codes.NotFound,
562-
errorsmod.Wrapf(types.ErrChannelNotFound, "port-id: %s, channel-id %s", req.PortId, req.ChannelId).Error(),
563-
)
564-
}
565-
566-
var sequence uint64
567-
sequence, found = k.GetNextSequenceSend(ctx, req.PortId, req.ChannelId)
558+
sequence, found := k.GetNextSequenceSend(ctx, req.PortId, req.ChannelId)
568559
if !found {
569560
return nil, status.Error(
570561
codes.NotFound,

0 commit comments

Comments
 (0)