Skip to content

Commit 08833bc

Browse files
committed
fix: don't screen unit for a Unitful unit
`__get_literal_unit` already screens units of DynamicQuantity.AbstractQuantity. So this check is redundant. Also, removing this check fixes the issue with `get_unit` for units of Unitful type.
1 parent 08d0a63 commit 08833bc

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
@@ -126,7 +126,7 @@ end
126126

127127
function get_unit(x::Symbolic)
128128
if (u = __get_literal_unit(x)) !== nothing
129-
screen_unit(u)
129+
u
130130
elseif issym(x)
131131
get_literal_unit(x)
132132
elseif isadd(x)

0 commit comments

Comments
 (0)