code_style: run dotnet format to apply rules defined in .editorconfig

This commit is contained in:
leo 2024-04-13 19:24:45 +08:00
parent 1bb4d55a5c
commit 7b5534a267
2 changed files with 5 additions and 8 deletions

View file

@ -1,7 +1,6 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Text.RegularExpressions; using System.Text.RegularExpressions;
using SourceGit.Models;
namespace SourceGit.Commands namespace SourceGit.Commands
{ {
@ -49,16 +48,14 @@ namespace SourceGit.Commands
{ {
if (line.StartsWith("old mode ", StringComparison.Ordinal)) if (line.StartsWith("old mode ", StringComparison.Ordinal))
{ {
_result.FileModeDiff ??= new FileModeDiff(); _result.FileModeDiff ??= new Models.FileModeDiff();
_result.FileModeDiff.Old = line.Substring(9); _result.FileModeDiff.Old = line.Substring(9);
return; return;
} }
if (line.StartsWith("new mode ", StringComparison.Ordinal)) if (line.StartsWith("new mode ", StringComparison.Ordinal))
{ {
_result.FileModeDiff ??= new FileModeDiff(); _result.FileModeDiff ??= new Models.FileModeDiff();
_result.FileModeDiff.New = line.Substring(9); _result.FileModeDiff.New = line.Substring(9);
return; return;
} }