Skip to content

Commit 089649e

Browse files
committed
Only eagerly check DQ
1 parent fc87dd6 commit 089649e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/systems/unit_check.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ function __get_literal_unit(x)
2020
end
2121
v = value(x)
2222
u = getmetadata(v, VariableUnit, nothing)
23-
u === nothing ? nothing : screen_unit(u)
23+
u isa DQ.AbstractQuantity ? screen_unit(u) : u
2424
end
2525
function __get_scalar_unit_type(v)
2626
u = __get_literal_unit(v)

0 commit comments

Comments
 (0)