mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 09:14:59 +00:00
cleanup
This commit is contained in:
parent
2a1255ed07
commit
4c2125d289
1 changed files with 3 additions and 7 deletions
|
@ -30,13 +30,9 @@ def to_tree(tags):
|
||||||
output = ""
|
output = ""
|
||||||
|
|
||||||
# add a bogus tag at the end so we trip the this_fname != cur_fname...
|
# add a bogus tag at the end so we trip the this_fname != cur_fname...
|
||||||
for tag in tags + [None]:
|
dummy_tag = (None,)
|
||||||
if tag is None:
|
for tag in tags + [dummy_tag]:
|
||||||
this_fname = None
|
this_fname = tag[0]
|
||||||
elif type(tag) is tuple:
|
|
||||||
this_fname = tag[0]
|
|
||||||
else:
|
|
||||||
this_fname = tag.rel_fname
|
|
||||||
|
|
||||||
# ... here ... to output the final real entry in the list
|
# ... here ... to output the final real entry in the list
|
||||||
if this_fname != cur_fname:
|
if this_fname != cur_fname:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue