Skip to content

Commit

Permalink
Make sure HasRelevantDiagnostics always has a result
Browse files Browse the repository at this point in the history
  • Loading branch information
tomv564 committed Nov 12, 2019
1 parent b811196 commit b10d054
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugin/diagnostics.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,8 @@ def invoke_each(self, func: 'Callable[[DiagnosticsUpdateWalk], None]') -> None:


class HasRelevantDiagnostics(DiagnosticsUpdateWalk):
def __init__(self) -> None:
self.result = False

def begin(self) -> None:
self.result = False
Expand Down

0 comments on commit b10d054

Please sign in to comment.