mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-06 12:45:00 +00:00
Merge pull request #1216 from akaihola/misc-cleanups
Clean up types and drop an unused variable
This commit is contained in:
commit
59cb457008
3 changed files with 11 additions and 14 deletions
|
@ -111,9 +111,9 @@ class EditBlockFunctionCoder(Coder):
|
|||
updated = get_arg(edit, "updated_lines")
|
||||
|
||||
# gpt-3.5 returns lists even when instructed to return a string!
|
||||
if self.code_format == "list" or type(original) == list:
|
||||
if self.code_format == "list" or type(original) is list:
|
||||
original = "\n".join(original)
|
||||
if self.code_format == "list" or type(updated) == list:
|
||||
if self.code_format == "list" or type(updated) is list:
|
||||
updated = "\n".join(updated)
|
||||
|
||||
if original and not original.endswith("\n"):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue