Fix unused var

master
Lucas Duailibe 2017-09-08 00:39:37 -03:00 committed by Stephen Scott
parent 3cfee9c976
commit 85f1351366
1 changed files with 2 additions and 2 deletions

View File

@ -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));