From 65ea568e3301951f26e0e3b98f6d5dc80132e917 Mon Sep 17 00:00:00 2001 From: Joe Antonakakis Date: Sat, 3 Aug 2019 16:33:23 -0700 Subject: [PATCH] Remove unnecessary if-statement in maybe_make_parens_invisible_in_atom (#964) --- black.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 -- 2.39.5