Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Miles Cranmer <[email protected]>
  • Loading branch information
theogf and MilesCranmer authored Mar 13, 2024
1 parent 9840242 commit bde027d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ext/OptimMOIExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ function __init__()
else
@eval Optim begin
using .OptimMOIExt
const Optimizer = OptimMOIExt.Optimizer
Optimizer = OptimMOIExt.Optimizer
end
end
end
Expand Down
4 changes: 1 addition & 3 deletions src/Optim.jl
Original file line number Diff line number Diff line change
Expand Up @@ -222,9 +222,7 @@ include("multivariate/solvers/constrained/ipnewton/utilities/trace.jl")
include("maximize.jl")

# Pre assign Optimizer, to be overloaded in OptimMOIExt.
if VERSION >= v"1.9"
global Optimizer
end
global Optimizer

function __init__()
@require_extensions
Expand Down

0 comments on commit bde027d

Please sign in to comment.