Skip to content

Commit

Permalink
simplify _getvns_link for TypedVarInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
torfjelde committed Oct 8, 2023
1 parent d15df29 commit 203aeb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/varinfo.jl
Original file line number Diff line number Diff line change
Expand Up @@ -910,7 +910,7 @@ _getvns_link(varinfo::VarInfo, spl::AbstractSampler) = _getvns(varinfo, spl)
_getvns_link(varinfo::UntypedVarInfo, spl::SampleFromPrior) = nothing
_getvns_link(varinfo::TypedVarInfo, spl::SampleFromPrior) = map(
Base.Returns(nothing),
_getvns(varinfo, spl)
varinfo.metadata
)

function link(::DynamicTransformation, varinfo::VarInfo, spl::AbstractSampler, model::Model)
Expand Down

0 comments on commit 203aeb3

Please sign in to comment.