Remove dead code (#18723)
This commit is contained in:
1 parent
c488924324
commit
4b242386f5
1 file changed
+1
-7
@@ -310,13 +310,7 @@ function printMemberChain(path, options, print) {
|
||||
shouldNotWrap(groups);
|
||||
|
||||
function printGroup(printedGroup) {
|
||||
const printed = printedGroup.map((tuple) => tuple.printed);
|
||||
// Checks if the last node (i.e. the parent node) needs parens and print
|
||||
// accordingly
|
||||
if (printedGroup.length > 0 && printedGroup.at(-1).needsParens) {
|
||||
return ["(", ...printed, ")"];
|
||||
}
|
||||
return printed;
|
||||
return printedGroup.map((tuple) => tuple.printed);
|
||||
}
|
||||
|
||||
function printIndentedGroup(groups) {
|
||||
|
||||
Reference in new issue
Block a user