Skip to content

Commit e826e2e

Browse files
Update unit_check.jl
1 parent 3cad7b3 commit e826e2e

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

src/systems/unit_check.jl

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -44,18 +44,7 @@ function __get_unit_type(vs′...)
4444
end
4545

4646
function screen_unit(result)
47-
if result isa DQ.AbstractQuantity
48-
d = DQ.dimension(result)
49-
if d isa DQ.Dimensions
50-
return result
51-
elseif d isa DQ.SymbolicDimensions
52-
return DQ.uexpand(oneunit(result))
53-
else
54-
throw(ValidationError("$result doesn't have a recognized unit"))
55-
end
56-
else
57-
throw(ValidationError("$result doesn't have any unit."))
58-
end
47+
throw(ValidationError("$result doesn't have any unit."))
5948
end
6049

6150
const unitless = DQ.Quantity(1.0)

0 commit comments

Comments
 (0)