Remove unnecessary if-statement in maybe_make_parens_invisible_in_atom (#964)
This commit is contained in:
parent
e66451761f
commit
65ea568e33
3
black.py
3
black.py
@ -3008,8 +3008,7 @@ def maybe_make_parens_invisible_in_atom(node: LN, parent: LN) -> bool:
|
||||
# make parentheses invisible
|
||||
first.value = "" # type: ignore
|
||||
last.value = "" # type: ignore
|
||||
if len(node.children) > 1:
|
||||
maybe_make_parens_invisible_in_atom(node.children[1], parent=parent)
|
||||
maybe_make_parens_invisible_in_atom(node.children[1], parent=parent)
|
||||
return False
|
||||
|
||||
return True
|
||||
|
Loading…
Reference in New Issue
Block a user