Skip to content

Commit

Permalink
Hotfix missing argument (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
chriscoey authored Jan 6, 2024
1 parent 97d9540 commit c76f259
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/json_to_moi.jl
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ function add_cons!(::Type{<:Real}, ::MOI.ModelLike, a::A, ::Dict, ::Dict) where
end

_check_v_type(::MOI.VariableIndex) = nothing
_check_v_type(_) =
_check_v_type(v) =
throw(Error(InvalidModel, "$v must be a `MOI.VariableIndex`, not $(typeof(v))."))

ineq_to_moi = Dict(:<= => MOI.LessThan, :>= => MOI.GreaterThan, :(==) => MOI.EqualTo)
Expand Down

0 comments on commit c76f259

Please sign in to comment.