Skip to content

Commit

Permalink
return early
Browse files Browse the repository at this point in the history
  • Loading branch information
jaimergp committed Jan 5, 2024
1 parent 03cd520 commit c5ee5f1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion constructor/fcp.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,10 @@ def getsize(filename):


def warn_menu_packages_missing(precs, menu_packages):
if not menu_packages:
return
all_names = {prec.name for prec in precs}
for name in (menu_packages or ()):
for name in menu_packages:
if name not in all_names:
logger.warning("no such package (in menu_packages): %s", name)

Expand Down

0 comments on commit c5ee5f1

Please sign in to comment.