code_style: remove unnecessary braces

Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
leo
2025-09-02 15:23:45 +08:00
parent f2e8fa3289
commit 8e9c8202b0

View File

@@ -837,13 +837,10 @@ namespace SourceGit.Views
if (i == endIdx)
{
if (endPosition.Column - 1 < line.Content.Length)
{
builder.Append(line.Content.AsSpan(0, endPosition.Column - 1));
}
else
{
builder.Append(line.Content);
}
break;
}