Remove extra parens around ternary (#19330)
This commit is contained in:
1 parent
e76e746131
commit
9c5fd587b9
2 files changed
+1
-2
No files matched your search
@@ -679,7 +679,6 @@ function needsParentheses(path, options) {
|
||||
case "BinaryExpression":
|
||||
case "LogicalExpression":
|
||||
case "NGPipeExpression":
|
||||
case "ExportDefaultDeclaration":
|
||||
case "AwaitExpression":
|
||||
case "JSXSpreadAttribute":
|
||||
case "TSTypeAssertion":
|
||||
|
||||
@@ -403,7 +403,7 @@ parsers: ["babel", "flow", "typescript"]
|
||||
=====================================input======================================
|
||||
export default (a ? b : c);
|
||||
=====================================output=====================================
|
||||
export default (a ? b : c);
|
||||
export default a ? b : c;
|
||||
|
||||
================================================================================
|
||||
`;
|
||||
|
||||
Reference in new issue
Block a user