code_style: run dotnet format

This commit is contained in:
leo 2025-01-08 21:44:35 +08:00
parent f06b1d5d51
commit a3d744f426
No known key found for this signature in database
12 changed files with 19 additions and 19 deletions

View file

@ -29,7 +29,8 @@ namespace SourceGit.Native
"/usr/bin/git", "/usr/local/bin/git", "/opt/homebrew/bin/git", "/opt/homebrew/opt/git/bin/git" "/usr/bin/git", "/usr/local/bin/git", "/opt/homebrew/bin/git", "/opt/homebrew/opt/git/bin/git"
}; };
foreach (var path in gitPathVariants) foreach (var path in gitPathVariants)
if (File.Exists(path)) return path; if (File.Exists(path))
return path;
return string.Empty; return string.Empty;
} }

View file

@ -136,7 +136,8 @@ namespace SourceGit.Views
Task.Run(() => Task.Run(() =>
{ {
var c = detail.GetParent(sha); var c = detail.GetParent(sha);
if (c == null) return; if (c == null)
return;
Dispatcher.UIThread.Invoke(() => Dispatcher.UIThread.Invoke(() =>
{ {

View file

@ -1,14 +1,12 @@
using System; using System;
using Avalonia; using Avalonia;
using Avalonia.Controls; using Avalonia.Controls;
using Avalonia.Controls.Primitives; using Avalonia.Controls.Primitives;
using Avalonia.Interactivity; using Avalonia.Interactivity;
using AvaloniaEdit;
using AvaloniaEdit.Document; using AvaloniaEdit.Document;
using AvaloniaEdit.Editing; using AvaloniaEdit.Editing;
using AvaloniaEdit.TextMate; using AvaloniaEdit.TextMate;
using AvaloniaEdit;
namespace SourceGit.Views namespace SourceGit.Views
{ {