mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-29 16:54:59 +00:00
Refactored Linter class to only return LintResult if text is not empty.
This commit is contained in:
parent
553f39a529
commit
1a3ae1fb60
1 changed files with 2 additions and 1 deletions
|
@ -107,7 +107,8 @@ class Linter:
|
|||
text += res.text
|
||||
lines.update(res.lines)
|
||||
|
||||
return LintResult(text, lines)
|
||||
if text:
|
||||
return LintResult(text, lines)
|
||||
|
||||
@dataclass
|
||||
class LintResult:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue