From adf6d1849d75b7f3c517eab448f861872fc6f3e5 Mon Sep 17 00:00:00 2001 From: Christopher Chedeau Date: Wed, 21 Mar 2018 14:38:51 -0700 Subject: [PATCH] Remove outdated comment (#4190) We now always return a conditional group. --- src/language-js/printer-estree.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/language-js/printer-estree.js b/src/language-js/printer-estree.js index 32bcb4cb..7d2fb08b 100644 --- a/src/language-js/printer-estree.js +++ b/src/language-js/printer-estree.js @@ -3181,9 +3181,6 @@ function printArgumentsList(path, options, print) { return concat(parts); }, "arguments"); - // This is just an optimization; I think we could return the - // conditional group for all function calls, but it's more expensive - // so only do it for specific forms. const shouldGroupFirst = shouldGroupFirstArg(args); const shouldGroupLast = shouldGroupLastArg(args); if (shouldGroupFirst || shouldGroupLast) {