Skip to content

Commit

Permalink
Change typeof(x) <: y to x isa y
Browse files Browse the repository at this point in the history
  • Loading branch information
Pepijn de Vos committed Nov 2, 2023
1 parent 57db8f3 commit 5799591
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MLP.jl
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ function solve(
g, f = prob.g, prob.f

# errors
typeof(prob.x0_sample) <: NoSampling ? nothing : error(
prob.x0_sample isa NoSampling ? nothing : error(
"`MLP` algorithm can only be used with `x0_sample=NoSampling()`.")

if multithreading
Expand Down

0 comments on commit 5799591

Please sign in to comment.