Removed unnecessary if as the condition is always True

It was checked a few lines before
This commit is contained in:
Hernan Grecco 2017-06-23 01:44:57 -03:00
parent 240349f2ee
commit e1cf39b75e
1 changed files with 20 additions and 23 deletions

View File

@ -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(