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