Removed unnecessary if as the condition is always True
It was checked a few lines before
This commit is contained in:
parent
240349f2ee
commit
e1cf39b75e
|
@ -944,9 +944,6 @@ class NonMultiplicativeRegistry(BaseRegistry):
|
||||||
if src_dim != dst_dim:
|
if src_dim != dst_dim:
|
||||||
raise DimensionalityError(src, dst, src_dim, dst_dim)
|
raise DimensionalityError(src, dst, src_dim, dst_dim)
|
||||||
|
|
||||||
# For offset units we need to check if the conversion is allowed.
|
|
||||||
if src_offset_units or dst_offset_units:
|
|
||||||
|
|
||||||
# Validate that not more than one offset unit is present
|
# Validate that not more than one offset unit is present
|
||||||
if len(src_offset_units) > 1 or len(dst_offset_units) > 1:
|
if len(src_offset_units) > 1 or len(dst_offset_units) > 1:
|
||||||
raise DimensionalityError(
|
raise DimensionalityError(
|
||||||
|
|
Loading…
Reference in New Issue