From c0d6ce53b7194767794ab28232036becc6cc88b6 Mon Sep 17 00:00:00 2001 From: Christopher Chedeau Date: Sat, 27 May 2017 14:11:30 -0700 Subject: [PATCH] lint --- src/clean-ast.js | 2 +- src/printer.js | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/clean-ast.js b/src/clean-ast.js index cdad85e4..4ac950db 100644 --- a/src/clean-ast.js +++ b/src/clean-ast.js @@ -67,7 +67,7 @@ function massageAST(ast) { } if (ast.type === "media-feature") { - newObj.value = newObj.value.replace(/ /g, ''); + newObj.value = newObj.value.replace(/ /g, ""); } // (TypeScript) Ignore `static` in `constructor(static p) {}` diff --git a/src/printer.js b/src/printer.js index a8065bf7..4a2a248f 100644 --- a/src/printer.js +++ b/src/printer.js @@ -2669,10 +2669,10 @@ function genericPrintNoParens(path, options, print, args) { if ( isURLCall && (n.groups.length === 1 || - n.groups[0].type === "value-comma_group" && - n.groups[0].groups.length > 0 && - n.groups[0].groups[0].type === "value-word" && - n.groups[0].groups[0].value === "data") + (n.groups[0].type === "value-comma_group" && + n.groups[0].groups.length > 0 && + n.groups[0].groups[0].type === "value-word" && + n.groups[0].groups[0].value === "data")) ) { return concat([ n.open ? path.call(print, "open") : "",