Delete redundant branch in NeedsParentheses (#8377)

This commit is contained in:
Micha Reiser 2023-10-31 21:06:17 +09:00 committed by GitHub
parent 8977b6ae11
commit 230c93459f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -150,8 +150,6 @@ impl NeedsParentheses for ExprAttribute {
OptionalParentheses::Multiline
} else if context.comments().has_dangling(self) {
OptionalParentheses::Always
} else if self.value.is_name_expr() {
OptionalParentheses::BestFit
} else if is_expression_parenthesized(
self.value.as_ref().into(),
context.comments().ranges(),