Skip to content

Commit

Permalink
Fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
blegat committed Nov 12, 2023
1 parent 30ea6b9 commit 71e7a7d
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions src/constraints.jl
Original file line number Diff line number Diff line change
Expand Up @@ -87,22 +87,12 @@ end

function _set_converted(
attr::MOI.AbstractConstraintAttribute,
con_ref::ConstraintRef{
<:AbstractModel,
<:MOI.ConstraintIndex{
F,
},
},
con_ref::ConstraintRef{<:AbstractModel,<:MOI.ConstraintIndex{F}},
value,
) where {F<:MOI.AbstractFunction}
model = owner_model(con_ref)
V = MOI.Utilities.value_type(value_type(typeof(model)), F)
MOI.set(
model,
attr,
con_ref,
_convert_if_something(V, value),
)
MOI.set(model, attr, con_ref, _convert_if_something(V, value))
return
end

Expand Down

0 comments on commit 71e7a7d

Please sign in to comment.