Skip to content

Commit 88de05a

Browse files
committed
Remove useless if
1 parent 72ee717 commit 88de05a

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

bpython/autocomplete.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -571,15 +571,15 @@ def matches(
571571
r = self.locate(cursor_offset, line)
572572
if r is None:
573573
return None
574-
if argspec:
575-
matches = {
576-
f"{name}="
577-
for name in argspec[1][0]
578-
if isinstance(name, str) and name.startswith(r.word)
579-
}
580-
matches.update(
581-
name + "=" for name in argspec[1][4] if name.startswith(r.word)
582-
)
574+
575+
matches = {
576+
f"{name}="
577+
for name in argspec[1][0]
578+
if isinstance(name, str) and name.startswith(r.word)
579+
}
580+
matches.update(
581+
name + "=" for name in argspec[1][4] if name.startswith(r.word)
582+
)
583583
return matches if matches else None
584584

585585
def locate(self, cursor_offset: int, line: str) -> Optional[LinePart]:

0 commit comments

Comments
 (0)