1 parent 2ce3410 commit a897c63Copy full SHA for a897c63
1 file changed
src/MOI/MOI_wrapper.jl
@@ -2159,7 +2159,7 @@ function _info(
2159
if haskey(model.affine_constraint_info, key.value)
2160
return model.affine_constraint_info[key.value]
2161
end
2162
- throw(MOI.InvalidIndex(key))
+ return throw(MOI.InvalidIndex(key))
2163
2164
2165
function MOI.is_valid(
@@ -2715,7 +2715,7 @@ function _info(
2715
if haskey(model.sos_constraint_info, key.value)
2716
return model.sos_constraint_info[key.value]
2717
2718
2719
2720
2721
_sos_type(::MOI.SOS1) = convert(Cchar, '1')
0 commit comments