Skip to content

Commit 19f63e8

Browse files
Update src/systems/unit_check.jl
1 parent 29ebb9f commit 19f63e8

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/systems/unit_check.jl

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -80,13 +80,7 @@ function get_unit(op, args) # Fallback
8080
try
8181
get_unit(result)
8282
catch
83-
try
84-
# Try with oneunit for numeric operations
85-
result = oneunit(op(unit_args...))
86-
return get_unit(result)
87-
catch
88-
throw(ValidationError("Unable to get unit for operation $op with arguments $args."))
89-
end
83+
throw(ValidationError("Unable to get unit for operation $op with arguments $args."))
9084
end
9185
end
9286

0 commit comments

Comments
 (0)