Skip to content

Commit

Permalink
Merge pull request #70 from pepijndevos/new-branch
Browse files Browse the repository at this point in the history
Change typeof(x) <: y to x isa y
  • Loading branch information
ChrisRackauckas authored Nov 2, 2023
2 parents 57db8f3 + 5799591 commit ca6633f
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 ca6633f

Please sign in to comment.