Refactored Linter class to only return LintResult if text is not empty.

This commit is contained in:
Paul Gauthier 2024-05-18 20:48:36 -07:00
parent 553f39a529
commit 1a3ae1fb60

View file

@ -107,6 +107,7 @@ class Linter:
text += res.text
lines.update(res.lines)
if text:
return LintResult(text, lines)
@dataclass