From df39fc7658593671bad346c4dc9491043658dc7b Mon Sep 17 00:00:00 2001 From: schillic Date: Wed, 23 Jan 2019 20:12:35 +0100 Subject: [PATCH] fix return value --- src/Intersection.jl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Intersection.jl b/src/Intersection.jl index f4cc69c025..e260872b4c 100644 --- a/src/Intersection.jl +++ b/src/Intersection.jl @@ -514,7 +514,8 @@ end function constraints_list(cap::Intersection{N, S1, S2}) where {N<:Real, S1<:AbstractPolytope{N}, S2<:AbstractPolytope{N}} constraints = [constraints_list(cap.X); constraints_list(cap.Y)] - return remove_redundant_constraints!(constraints) + remove_redundant_constraints!(constraints) + return constraints end # --- Intersection functions ---