Skip to content
This repository was archived by the owner on Apr 14, 2022. It is now read-only.

Commit 6e9f719

Browse files
committed
Builder is empty, can simply add space.
1 parent e55339b commit 6e9f719

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

src/LanguageServer/Impl/Implementation/LineFormatter.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -120,11 +120,7 @@ public TextEdit[] FormatLine(int line) {
120120
// after it if needed (i.e. in the case of a following comment).
121121
startIndex = first.Span.End;
122122
startIdx = 1;
123-
if (builder.Length == 0) {
124-
builder.Append(' ');
125-
} else {
126-
builder.EnsureEndsWithWhiteSpace();
127-
}
123+
builder.Append(' ');
128124
}
129125

130126
for (var i = startIdx; i < tokens.Count; i++) {

0 commit comments

Comments
 (0)