mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-01 18:25:00 +00:00
fix: add null check for filename in lint_edited method
This commit is contained in:
parent
974e618541
commit
efe9268bcb
1 changed files with 2 additions and 0 deletions
|
@ -1420,6 +1420,8 @@ class Coder:
|
|||
def lint_edited(self, fnames):
|
||||
res = ""
|
||||
for fname in fnames:
|
||||
if not fname:
|
||||
continue
|
||||
errors = self.linter.lint(self.abs_root_path(fname))
|
||||
|
||||
if errors:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue