Skip to content

Commit

Permalink
Remove redundant else
Browse files Browse the repository at this point in the history
Signed-off-by: Jean-Christophe Morin <jean_christophe_morin@hotmail.com>
  • Loading branch information
JeanChristopheMorinPerso committed Jun 29, 2024
1 parent 72747ca commit a8d0439
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/rez/package_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,17 +252,17 @@ def add_variant(self, variant, force=False, wait_for_copying=False, logger=None)
spinner.next()
time.sleep(self._COPYING_TIME_INC)
status, rootpath = self._get_cached_root(variant)
else:
# Status has changed, so report the change and return
if logger:
if status == self.VARIANT_FOUND:
# We have resolved into a satisfactory state
logger.info(f"{variant.qualified_name} "

# Status has changed, so report the change and return
if logger:
if status == self.VARIANT_FOUND:
# We have resolved into a satisfactory state
logger.info(f"{variant.qualified_name} "
f"{self.STATUS_DESCRIPTIONS[status]}")
else:
logger.warning(f"{variant.qualified_name} "
f"{self.STATUS_DESCRIPTIONS[status]}")
else:
logger.warning(f"{variant.qualified_name} "
f"{self.STATUS_DESCRIPTIONS[status]}")
return (rootpath, status)
return (rootpath, status)

# 1.
path = self._get_hash_path(variant)
Expand Down

0 comments on commit a8d0439

Please sign in to comment.