Skip to content

Commit

Permalink
Fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
blegat committed Oct 5, 2023
1 parent 4fa2256 commit 38aa293
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/MOI_wrapper.jl
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,7 @@ function MOI.set(
return nothing

Check warning on line 158 in src/MOI_wrapper.jl

View check run for this annotation

Codecov / codecov/patch

src/MOI_wrapper.jl#L155-L158

Added lines #L155 - L158 were not covered by tests
end

function MOI.supports(
::Optimizer, ::Union{MOI.ObjectiveSense,MOI.ObjectiveFunction}
)
function MOI.supports(::Optimizer, ::Union{MOI.ObjectiveSense,MOI.ObjectiveFunction})
return true

Check warning on line 162 in src/MOI_wrapper.jl

View check run for this annotation

Codecov / codecov/patch

src/MOI_wrapper.jl#L161-L162

Added lines #L161 - L162 were not covered by tests
end

Expand All @@ -177,9 +175,7 @@ function MOI.get(
return MOI.get(model.nlp_model, attr)

Check warning on line 175 in src/MOI_wrapper.jl

View check run for this annotation

Codecov / codecov/patch

src/MOI_wrapper.jl#L175

Added line #L175 was not covered by tests
end

function MOI.set(
model::Optimizer, ::MOI.ObjectiveFunction{F}, func::F
) where {F}
function MOI.set(model::Optimizer, ::MOI.ObjectiveFunction{F}, func::F) where {F}
nl = convert(MOI.ScalarNonlinearFunction, func)
MOI.Nonlinear.set_objective(model.nlp_model, nl)
model.problem = nothing
Expand Down

0 comments on commit 38aa293

Please sign in to comment.