Fix unused var
parent
3cfee9c976
commit
85f1351366
|
@ -354,11 +354,11 @@ function genericPrintNoParens(path, options, print, args) {
|
|||
parent.type === "ObjectProperty" ||
|
||||
parent.type === "Property";
|
||||
|
||||
const logicalSubExpressionExists = n.left.type === "LogicalExpression";
|
||||
const logicalSubExpression = n.left.type === "LogicalExpression";
|
||||
|
||||
if (
|
||||
shouldNotIdent ||
|
||||
(shouldInlineLogicalExpression(n) && n.left.type !== n.type) ||
|
||||
(shouldInlineLogicalExpression(n) && !logicalSubExpression) ||
|
||||
(!shouldInlineLogicalExpression(n) && shouldIdentIfInlining)
|
||||
) {
|
||||
return group(concat(parts));
|
||||
|
|
Loading…
Reference in New Issue