mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-29 00:35:00 +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 = ""
|
||||
|
||||
# add a bogus tag at the end so we trip the this_fname != cur_fname...
|
||||
for tag in tags + [None]:
|
||||
if tag is None:
|
||||
this_fname = None
|
||||
elif type(tag) is tuple:
|
||||
this_fname = tag[0]
|
||||
else:
|
||||
this_fname = tag.rel_fname
|
||||
dummy_tag = (None,)
|
||||
for tag in tags + [dummy_tag]:
|
||||
this_fname = tag[0]
|
||||
|
||||
# ... here ... to output the final real entry in the list
|
||||
if this_fname != cur_fname:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue