Remove dead code (#18723)

This commit is contained in:
fisker Cheung authored and GitHub committed 2026-01-23 15:30:01 +08:00
1 parent c488924324
commit 4b242386f5
1 file changed
+1 -7
+1 -7
View File
@@ -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) {