From a771293ea682fac3b5e9926995699a497b99ac8d Mon Sep 17 00:00:00 2001 From: MSalopek Date: Wed, 11 Sep 2024 09:59:40 +0200 Subject: [PATCH] fix err handling and gosec reports --- x/ccv/provider/keeper/grpc_query.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x/ccv/provider/keeper/grpc_query.go b/x/ccv/provider/keeper/grpc_query.go index 4da34a6c35..7bd7ed1b2d 100644 --- a/x/ccv/provider/keeper/grpc_query.go +++ b/x/ccv/provider/keeper/grpc_query.go @@ -59,7 +59,7 @@ func (k Keeper) QueryConsumerChains(goCtx context.Context, req *types.QueryConsu pageRes, err := query.Paginate(consumerPhaseStore, req.Pagination, func(key, value []byte) error { consumerId, err := types.ParseStringIdWithLenKey(storePrefix, append([]byte{storePrefix}, key...)) if err != nil { - status.Error(codes.Internal, err.Error()) + return status.Error(codes.Internal, err.Error()) } phase := types.ConsumerPhase(binary.BigEndian.Uint32(value))