Skip to content

Commit

Permalink
Remove outdated comment (#4190)
Browse files Browse the repository at this point in the history
We now always return a conditional group.
  • Loading branch information
vjeux authored Mar 21, 2018
1 parent 24f45d1 commit adf6d18
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/language-js/printer-estree.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit adf6d18

Please sign in to comment.