mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-05 04:05:04 +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):
|
def lint_edited(self, fnames):
|
||||||
res = ""
|
res = ""
|
||||||
for fname in fnames:
|
for fname in fnames:
|
||||||
|
if not fname:
|
||||||
|
continue
|
||||||
errors = self.linter.lint(self.abs_root_path(fname))
|
errors = self.linter.lint(self.abs_root_path(fname))
|
||||||
|
|
||||||
if errors:
|
if errors:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue