From: Joe Antonakakis Date: Sat, 3 Aug 2019 23:33:23 +0000 (-0700) Subject: Remove unnecessary if-statement in maybe_make_parens_invisible_in_atom (#964) X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/65ea568e3301951f26e0e3b98f6d5dc80132e917?hp=e66451761fab864cce9077a3ee72999543b8ef65 Remove unnecessary if-statement in maybe_make_parens_invisible_in_atom (#964) --- diff --git a/black.py b/black.py index 910a0ed..f7022d8 100644 --- a/black.py +++ b/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