solver: Invert an if-statement to reduce max indentation level

Signed-off-by: Niels Thykier <niels@thykier.net>
ubuntu/rebased
Niels Thykier 6 years ago
parent 68407c53c0
commit b61e1086bd
No known key found for this signature in database
GPG Key ID: A65B78DBE67C7AAC

@ -267,7 +267,9 @@ class InstallabilitySolver(object):
scc_id = com[0]
scc[scc_id] = com
merged[scc_id] = scc_id
if len(com) > 1:
if len(com) < 2:
# Trivial case
continue
so_before = order[scc_id]['before']
so_after = order[scc_id]['after']
for n in com:

Loading…
Cancel
Save