Remove reduntant logic

This commit is contained in:
Temerold 2023-06-17 01:36:50 +02:00 committed by GitHub
parent a728ffaf58
commit 8f3515462b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -462,7 +462,7 @@ def init(args):
extra_ignore_dirs=extra_ignore_dirs,
follow_links=follow_links)
candidates = get_pkg_names(candidates)
if extra_pkgs is not None:
if extra_pkgs:
candidates = list(set(candidates) | set(extra_pkgs))
logging.debug("Found imports: " + ", ".join(candidates))
pypi_server = "https://pypi.python.org/pypi/"