Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
abelsiqueira committed Jan 20, 2025
1 parent 8f3f4ec commit 838744f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/solve-model.jl
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,9 @@ Notice that the duals are only computed if `compute_duals` is true.
function save_solution!(connection, model, variables, constraints; compute_duals = true)
# Check if it's solved
if !JuMP.is_solved_and_feasible(model)
@error("The model has a termination status: $JuMP.termination_status(model), with primal status $JuMP.primal_status(model), and dual status $JuMP.dual_status(model)")
@error(

Check warning on line 100 in src/solve-model.jl

View check run for this annotation

Codecov / codecov/patch

src/solve-model.jl#L100

Added line #L100 was not covered by tests
"The model has a termination status: $JuMP.termination_status(model), with primal status $JuMP.primal_status(model), and dual status $JuMP.dual_status(model)"
)
return

Check warning on line 103 in src/solve-model.jl

View check run for this annotation

Codecov / codecov/patch

src/solve-model.jl#L103

Added line #L103 was not covered by tests
end

Expand Down

0 comments on commit 838744f

Please sign in to comment.