Skip to content

Commit

Permalink
Fix broken short circuit in MH
Browse files Browse the repository at this point in the history
  • Loading branch information
mhauru committed Nov 15, 2024
1 parent d53350d commit 5d401e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mcmc/mh.jl
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ function dist_val_tuple(spl::Sampler{<:MH}, vi::DynamicPPL.VarInfoOrThreadSafeVa
end

@generated function _val_tuple(vi::VarInfo, vns::NamedTuple{names}) where {names}
isempty(names) === 0 && return :(NamedTuple())
isempty(names) && return :(NamedTuple())
expr = Expr(:tuple)
expr.args = Any[
:(
Expand Down

0 comments on commit 5d401e1

Please sign in to comment.