Skip to content

Commit aac93f1

Browse files
committed
Remove extra return value from tilde_assume
1 parent d62ad82 commit aac93f1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/mcmc/gibbs.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -212,12 +212,12 @@ function DynamicPPL.tilde_assume(
212212
return if is_target_varname(context, vn)
213213
DynamicPPL.tilde_assume(rng, child_context, sampler, right, vn, vi)
214214
elseif has_conditioned_gibbs(context, vn)
215-
value, lp, _ = DynamicPPL.tilde_assume(
215+
value, _ = DynamicPPL.tilde_assume(
216216
child_context, right, vn, get_global_varinfo(context)
217217
)
218-
value, lp, vi
218+
value, vi
219219
else
220-
value, lp, new_global_vi = DynamicPPL.tilde_assume(
220+
value, new_global_vi = DynamicPPL.tilde_assume(
221221
rng,
222222
child_context,
223223
DynamicPPL.SampleFromPrior(),
@@ -226,7 +226,7 @@ function DynamicPPL.tilde_assume(
226226
get_global_varinfo(context),
227227
)
228228
set_global_varinfo!(context, new_global_vi)
229-
value, lp, vi
229+
value, vi
230230
end
231231
end
232232

0 commit comments

Comments
 (0)