Skip to content

Commit

Permalink
Remove fix
Browse files Browse the repository at this point in the history
  • Loading branch information
blegat committed May 12, 2024
1 parent f62b542 commit e785b3d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Bridges/Bridges.jl
Original file line number Diff line number Diff line change
Expand Up @@ -277,9 +277,7 @@ function runtests(
bridge_supported = all(values(Variable.bridges(model))) do bridge
return MOI.supports(model, attr, typeof(bridge))
end
if MOI.supports(model, attr, MOI.VariableIndex) &&
bridge_supported &&
MOI.get(model, MOI.NumberOfVariables()) > 0
if MOI.supports(model, attr, MOI.VariableIndex) && bridge_supported
x = MOI.get(model, MOI.ListOfVariableIndices())
MOI.set(model, attr, x, fill(nothing, length(x)))
Test.@test all(isnothing, MOI.get(model, attr, x))
Expand Down

0 comments on commit e785b3d

Please sign in to comment.