Skip to content

Commit 29ebb9f

Browse files
Update src/systems/unit_check.jl
1 parent 480f6a4 commit 29ebb9f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/systems/unit_check.jl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,7 @@ get_unit(op::typeof(instream), args) = get_unit(args[1])
7878
function get_unit(op, args) # Fallback
7979
result = oneunit(op(get_unit.(args)...))
8080
try
81-
result = op(unit_args...)
82-
# For operations that return a unit directly, return oneunit to get the unit structure
83-
return oneunit(result)
81+
get_unit(result)
8482
catch
8583
try
8684
# Try with oneunit for numeric operations

0 commit comments

Comments
 (0)