mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-24 14:25:00 +00:00
Removed redundant code for handling None input and added check for empty input.
This commit is contained in:
parent
5b8aec7862
commit
1a7732c851
1 changed files with 3 additions and 2 deletions
|
@ -179,8 +179,6 @@ class Coder:
|
||||||
print()
|
print()
|
||||||
|
|
||||||
inp = get_input(self.history_file, self.fnames)
|
inp = get_input(self.history_file, self.fnames)
|
||||||
if inp is None:
|
|
||||||
return
|
|
||||||
|
|
||||||
self.num_control_c = 0
|
self.num_control_c = 0
|
||||||
|
|
||||||
|
@ -195,6 +193,9 @@ class Coder:
|
||||||
]
|
]
|
||||||
self.cur_messages = []
|
self.cur_messages = []
|
||||||
|
|
||||||
|
if not inp:
|
||||||
|
return
|
||||||
|
|
||||||
self.cur_messages += [
|
self.cur_messages += [
|
||||||
dict(role="user", content=inp),
|
dict(role="user", content=inp),
|
||||||
]
|
]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue