Skip to content

Commit

Permalink
[interpolatable] Simplify sorting
Browse files Browse the repository at this point in the history
  • Loading branch information
behdad committed Dec 7, 2023
1 parent 39f6142 commit dcf3f0c
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions Lib/fontTools/varLib/interpolatableHelpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,7 @@ def sort_problems(problems):
sorted(
problems.items(),
key=lambda _: -min(
(
InterpolatableProblem.severity[p["type"]]
for p in _[1]
if InterpolatableProblem.severity[p["type"]]
!= InterpolatableProblem.severity[InterpolatableProblem.NOTHING]
),
default=InterpolatableProblem.severity[InterpolatableProblem.NOTHING],
(InterpolatableProblem.severity[p["type"]] for p in _[1]),
),
reverse=True,
)
Expand Down

0 comments on commit dcf3f0c

Please sign in to comment.