Skip to content

Commit fc5fe5b

Browse files
authored
Update MOI_wrapper.jl
1 parent 38f0ebd commit fc5fe5b

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/MOI_wrapper.jl

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -213,8 +213,7 @@ function MOI.add_constraint(
213213
) where {T}
214214
constraint = Constraint(_expr(model, func), set)
215215
if vexity(constraint) == Convex.NotDcp()
216-
msg =
217-
"\n\n[Convex.jl] The constraint is not convex according to the axioms of Disciplined Convex Programming.\n\n"
216+
msg = "\n\n[Convex.jl] The constraint is not convex according to the axioms of Disciplined Convex Programming.\n\n"
218217
throw(MOI.AddConstraintNotAllowed{typeof(func),typeof(set)}(msg))
219218
end
220219
add_constraint!(model.context, constraint)
@@ -246,8 +245,7 @@ function MOI.set(
246245
vex = -vex
247246
end
248247
if vex in (Convex.NotDcp(), Convex.ConcaveVexity())
249-
msg =
250-
"\n\n[Convex.jl] The objective is not convex according to the axioms of Disciplined Convex Programming.\n\n"
248+
msg = "\n\n[Convex.jl] The objective is not convex according to the axioms of Disciplined Convex Programming.\n\n"
251249
throw(MOI.SetAttributeNotAllowed(attr, msg))
252250
end
253251
cfp = conic_form!(model.context, obj_fn)

0 commit comments

Comments
 (0)