Skip to content

Commit 721a851

Browse files
samtrionCopilot
andauthored
fix: Update src/NetEvolve.CodeBuilder/CSharpCodeBuilder.Clear.cs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Martin Stühmer <me@samtrion.net>
1 parent a5b6b06 commit 721a851

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

src/NetEvolve.CodeBuilder/CSharpCodeBuilder.Clear.cs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,7 @@ public CSharpCodeBuilder Clear()
3131
/// </remarks>
3232
public CSharpCodeBuilder Intend()
3333
{
34-
if (UseTabs)
35-
{
36-
_ = _builder.Append('\t');
37-
}
38-
else
39-
{
40-
_ = _builder.Append(' ', 4);
41-
}
34+
_ = _builder.Append(UseTabs ? '\t' : ' ', UseTabs ? 1 : 4);
4235

4336
return this;
4437
}

0 commit comments

Comments
 (0)