We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e897b8a commit 33f9bb7Copy full SHA for 33f9bb7
src/sample.jl
@@ -540,7 +540,9 @@ tighten_eltype(x::Vector{Any}) = map(identity, x)
540
541
check_initial_params(x::Nothing, n::Int) = nothing
542
function check_initial_params(x, n::Int)
543
- length(x) == n || throw(
544
- ArgumentError("not enough initial parameters (expected $n, received $(length(y))"),
545
- )
+ if length(x) != n
+ throw(
+ ArgumentError("not enough initial parameters (expected $n, received $(length(x))"),
546
+ )
547
+ end
548
end
0 commit comments