Skip to content

Commit

Permalink
Only eagerly check DQ
Browse files Browse the repository at this point in the history
  • Loading branch information
YingboMa committed Jan 3, 2024
1 parent fc87dd6 commit 089649e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/systems/unit_check.jl
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function __get_literal_unit(x)
end
v = value(x)
u = getmetadata(v, VariableUnit, nothing)
u === nothing ? nothing : screen_unit(u)
u isa DQ.AbstractQuantity ? screen_unit(u) : u
end
function __get_scalar_unit_type(v)
u = __get_literal_unit(v)
Expand Down

0 comments on commit 089649e

Please sign in to comment.