Skip to content

Commit b7dd4fd

Browse files
Update src/problems/optimization_problems.jl
1 parent 74c3169 commit b7dd4fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/problems/optimization_problems.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,4 +151,4 @@ end
151151
isinplace(f::OptimizationFunction{iip}) where {iip} = iip
152152
isinplace(f::OptimizationProblem{iip}) where {iip} = iip
153153

154-
Base.getproperty(prob::OptimizationProblem, sym::Symbol) = sym == :x0 ? getfield(prob, :u0) : getfield(prob, sym)
154+
Base.getproperty(prob::OptimizationProblem, sym::Symbol) = sym === :x0 ? getfield(prob, :u0) : getfield(prob, sym)

0 commit comments

Comments
 (0)