Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
rchl committed Jun 9, 2021
1 parent df14310 commit 402dda3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugin/session_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,9 +234,9 @@ def update_active_diagnostic_async(self, r: sublime.Region) -> None:
if region.intersects(r):
results.append((diag, region))
if results:
results = sorted(results, key=lambda d: d[0].get('severity', ''))
results = sorted(results, key=lambda d: d[0].get('severity', 1))
diag, region = results[0]
scope = DIAGNOSTIC_SEVERITY[diag.get('severity', '') - 1][2]
scope = DIAGNOSTIC_SEVERITY[diag.get('severity', 1) - 1][2]
icon = ""
flags = sublime.DRAW_NO_FILL | sublime.DRAW_NO_OUTLINE
annotations = [format_diagnostic_for_annotation(diag)]
Expand Down

0 comments on commit 402dda3

Please sign in to comment.