Skip to content

Commit 03216fc

Browse files
committed
code_style: run dotnet format and re-order codes
Signed-off-by: leo <[email protected]>
1 parent 3cc463d commit 03216fc

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/App.axaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,7 @@ public override void OnFrameworkInitializationCompleted()
356356
else
357357
{
358358
_ipcChannel.MessageReceived += TryOpenRepository;
359+
desktop.Exit += (_, _) => _ipcChannel.Dispose();
359360
TryLaunchAsNormal(desktop);
360361
}
361362
}
@@ -500,7 +501,6 @@ private void TryLaunchAsNormal(IClassicDesktopStyleApplicationLifetime desktop)
500501

501502
_launcher = new ViewModels.Launcher(startupRepo);
502503
desktop.MainWindow = new Views.Launcher() { DataContext = _launcher };
503-
desktop.Exit += (_, _) => _ipcChannel.Dispose();
504504

505505
#if !DISABLE_UPDATE_DETECTION
506506
if (pref.ShouldCheck4UpdateOnStartup())

src/Commands/Diff.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public Models.DiffResult Result()
5858
{
5959
ProcessInlineHighlights();
6060
_result.TextDiff.MaxLineNumber = Math.Max(_newLine, _oldLine);
61-
}
61+
}
6262

6363
return _result;
6464
}

src/Models/IpcChannel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ private async void StartServer()
7979
try
8080
{
8181
await _server.WaitForConnectionAsync(_cancellationTokenSource.Token);
82-
82+
8383
if (!_cancellationTokenSource.IsCancellationRequested)
8484
{
8585
var line = await reader.ReadToEndAsync(_cancellationTokenSource.Token);

src/Views/ConfigureWorkspace.axaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1+
using System;
12
using Avalonia.Controls;
23
using Avalonia.Interactivity;
34
using Avalonia.Platform.Storage;
4-
using System;
55

66
namespace SourceGit.Views
77
{

0 commit comments

Comments
 (0)