Skip to content

Commit

Permalink
simplify line matching
Browse files Browse the repository at this point in the history
Co-authored-by: Rafał Chłodnicki <[email protected]>
  • Loading branch information
Renée Köcher and rchl authored Nov 3, 2023
1 parent 94cd6d6 commit d2f4d93
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pylsp_mypy/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,7 @@ def parse_line(line: str, document: Optional[Document] = None) -> Optional[Dict[
The dict with the lint data.
"""
result = line_pattern.match(line)
if not result:
result = whole_line_pattern.match(line)
result = line_pattern.match(line) or whole_line_pattern.match(line)

if not result:
return None
Expand Down

0 comments on commit d2f4d93

Please sign in to comment.