Skip to content

Commit 3113499

Browse files
committed
refactor: clean up evaluation
1 parent 2c34b4e commit 3113499

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Evaluate.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -776,7 +776,7 @@ function eval(current_node)
776776
operators::GenericOperatorEnum;
777777
throw_errors::Union{Val,Bool}=Val(true),
778778
) where {T1,T2,N}
779-
v_throw_errors = throw_errors isa Val ? throw_errors : Val(throw_errors)
779+
v_throw_errors = _to_bool_val(throw_errors)
780780
try
781781
return _eval_tree_array_generic(tree, cX, operators, v_throw_errors)
782782
catch e

0 commit comments

Comments
 (0)