Skip to content

Commit

Permalink
fix err handling and gosec reports
Browse files Browse the repository at this point in the history
  • Loading branch information
MSalopek committed Sep 11, 2024
1 parent d040bc1 commit a771293
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/ccv/provider/keeper/grpc_query.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit a771293

Please sign in to comment.