Short circuit when there's nothing to report

This commit is contained in:
Pradyun Gedam 2020-07-17 04:01:46 +05:30 committed by Pradyun Gedam
parent d77b5c234c
commit 42c62a08f7
No known key found for this signature in database
GPG Key ID: FF99710C4332258E
1 changed files with 3 additions and 0 deletions

View File

@ -539,6 +539,9 @@ class InstallCommand(RequirementCommand):
def _warn_about_conflicts(self, conflict_details):
# type: (ConflictDetails) -> None
package_set, (missing, conflicting) = conflict_details
if not missing and not conflicting:
return
parts = [] # type: List[str]
# NOTE: There is some duplication here, with commands/check.py