Commit c7e8cb9e by Ofek Lev Committed by Sébastien Eustace

simplify conditional (#152)

parent 9d1a81e0
...@@ -102,7 +102,7 @@ class Solver: ...@@ -102,7 +102,7 @@ class Solver:
return sorted( return sorted(
operations, operations,
key=lambda o: ( key=lambda o: (
1 if not o.package.name not in requested_names else 0, 1 if o.package.name in requested_names else 0,
o.package.name o.package.name
) )
) )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment