Skip to content

Commit 9f59120

Browse files
committed
small refactor
1 parent 827a741 commit 9f59120

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/slang-printers/print-block-comment.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@ const { hardline, join, literalline } = doc.builders;
88
function printIndentableBlockComment(lines: string[]): Doc {
99
return join(
1010
hardline,
11-
lines.map((line, index) =>
12-
index === 0 ? line.trimEnd() : ` ${line.trimEnd()}`
13-
)
11+
lines.map((line, index) => `${index === 0 ? '' : ' '}${line.trimEnd()}`)
1412
);
1513
}
1614

0 commit comments

Comments
 (0)