Updated Linter to return LintResult if text or lines are present.

This commit is contained in:
Paul Gauthier 2024-05-18 20:48:53 -07:00
parent 1a3ae1fb60
commit 828e14fd3d

View file

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