code_style: run dotnet format

This commit is contained in:
leo 2024-06-14 09:46:30 +08:00
parent 1dffb2ebf5
commit 9d3f186b44
No known key found for this signature in database
GPG key ID: B528468E49CD0E58
10 changed files with 17 additions and 16 deletions

View file

@ -12,7 +12,8 @@ namespace SourceGit.Commands
public string Result() public string Result()
{ {
var rs = ReadToEnd(); var rs = ReadToEnd();
if (rs.IsSuccess) return rs.StdOut.TrimEnd(); if (rs.IsSuccess)
return rs.StdOut.TrimEnd();
return string.Empty; return string.Empty;
} }
} }

View file

@ -1,6 +1,6 @@
using System; using System;
using System.Text.Json.Serialization;
using System.Text.Json; using System.Text.Json;
using System.Text.Json.Serialization;
using Avalonia.Controls; using Avalonia.Controls;

View file

@ -107,7 +107,7 @@ namespace SourceGit.Views
protected override Type StyleKeyOverride => typeof(TextEditor); protected override Type StyleKeyOverride => typeof(TextEditor);
public IThemedTextDiffPresenter(TextArea area, TextDocument doc): base(area, doc) public IThemedTextDiffPresenter(TextArea area, TextDocument doc) : base(area, doc)
{ {
IsReadOnly = true; IsReadOnly = true;
ShowLineNumbers = false; ShowLineNumbers = false;