Skip to content

Commit 686ed9f

Browse files
committed
explicitly call typed_varinfo when we want such a thing rather than
the ambiguous `VarINfo`
1 parent 891b46a commit 686ed9f

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/model_utils.jl

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -262,11 +262,5 @@ function determine_suitable_varinfo(
262262
end
263263

264264
# Otherwise, we use the, possibly incorrect, default typed varinfo (to stay backwards compat).
265-
return if hassampler(context)
266-
# Don't need to add the default sampler to the context.
267-
VarInfo(model, context)
268-
else
269-
# Add the default sampler to the context.
270-
VarInfo(model, SamplingContext(context))
271-
end
265+
return typed_varinfo(model, context)
272266
end

0 commit comments

Comments
 (0)