mirror of
https://github.com/bndr/pipreqs.git
synced 2025-06-06 03:25:21 +00:00
Remove reduntant logic
This commit is contained in:
parent
a728ffaf58
commit
8f3515462b
@ -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/"
|
||||
|
Loading…
x
Reference in New Issue
Block a user