Skip to content

Commit a897c63

Browse files
authored
Fix formatting for latest JuliaFormatter (#329)
1 parent 2ce3410 commit a897c63

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎src/MOI/MOI_wrapper.jl‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2159,7 +2159,7 @@ function _info(
21592159
if haskey(model.affine_constraint_info, key.value)
21602160
return model.affine_constraint_info[key.value]
21612161
end
2162-
throw(MOI.InvalidIndex(key))
2162+
return throw(MOI.InvalidIndex(key))
21632163
end
21642164

21652165
function MOI.is_valid(
@@ -2715,7 +2715,7 @@ function _info(
27152715
if haskey(model.sos_constraint_info, key.value)
27162716
return model.sos_constraint_info[key.value]
27172717
end
2718-
throw(MOI.InvalidIndex(key))
2718+
return throw(MOI.InvalidIndex(key))
27192719
end
27202720

27212721
_sos_type(::MOI.SOS1) = convert(Cchar, '1')

0 commit comments

Comments
 (0)