Skip to content

Commit 66f5231

Browse files
committed
Simplify check for assumptions
1 parent 77533f5 commit 66f5231

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/compiler.jl

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,8 @@ function isassumption(model, expr::Union{Symbol, Expr})
3838
if !$(DynamicPPL.inargnames)($vn, $model) || $(DynamicPPL.inmissings)($vn, $model)
3939
true
4040
else
41-
if $(DynamicPPL.inargnames)($vn, $model)
42-
# Evaluate the lhs
43-
$expr === missing
44-
else
45-
throw("This point should not be reached. Please report this error.")
46-
end
41+
# Evaluate the LHS
42+
$expr === missing
4743
end
4844
end
4945
end

0 commit comments

Comments
 (0)