From a6103b8b31f31f486fee941d0ab75bf8e2ed2cd5 Mon Sep 17 00:00:00 2001 From: leo Date: Thu, 21 Mar 2024 21:08:30 +0800 Subject: [PATCH] code-style: run `dotnet format` to compliance the editorconfig rules (#31) --- src/SourceGit/App.axaml.cs | 2 +- src/SourceGit/Converters/StringConverters.cs | 2 +- src/SourceGit/Models/TextMateHelper.cs | 4 ++-- src/SourceGit/Views/TextDiffView.axaml.cs | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/SourceGit/App.axaml.cs b/src/SourceGit/App.axaml.cs index 3e1c38a6..749e40b7 100644 --- a/src/SourceGit/App.axaml.cs +++ b/src/SourceGit/App.axaml.cs @@ -1,9 +1,9 @@ using System; using System.Collections; +using System.Globalization; using System.IO; using System.Reflection; using System.Text; -using System.Globalization; using Avalonia; using Avalonia.Controls; diff --git a/src/SourceGit/Converters/StringConverters.cs b/src/SourceGit/Converters/StringConverters.cs index ea1ddd42..7bd68037 100644 --- a/src/SourceGit/Converters/StringConverters.cs +++ b/src/SourceGit/Converters/StringConverters.cs @@ -95,4 +95,4 @@ namespace SourceGit.Converters public static ToFontFamilyConverter ToFontFamily = new ToFontFamilyConverter(); } -} +} \ No newline at end of file diff --git a/src/SourceGit/Models/TextMateHelper.cs b/src/SourceGit/Models/TextMateHelper.cs index 270cb507..0fe97e52 100644 --- a/src/SourceGit/Models/TextMateHelper.cs +++ b/src/SourceGit/Models/TextMateHelper.cs @@ -21,7 +21,7 @@ namespace SourceGit.Models else { return editor.InstallTextMate(new RegistryOptions(ThemeName.LightPlus)); - } + } } public static void SetThemeByApp(TextMate.Installation installation) @@ -58,4 +58,4 @@ namespace SourceGit.Models GC.Collect(); } } -} +} \ No newline at end of file diff --git a/src/SourceGit/Views/TextDiffView.axaml.cs b/src/SourceGit/Views/TextDiffView.axaml.cs index a321d81e..c432abc7 100644 --- a/src/SourceGit/Views/TextDiffView.axaml.cs +++ b/src/SourceGit/Views/TextDiffView.axaml.cs @@ -375,7 +375,7 @@ namespace SourceGit.Views } private TextMate.Installation _textMate; - private LineStyleTransformer _lineStyleTransformer = null; + private readonly LineStyleTransformer _lineStyleTransformer = null; } public class SingleSideTextDiffPresenter : TextEditor @@ -780,7 +780,7 @@ namespace SourceGit.Views } private TextMate.Installation _textMate; - private LineStyleTransformer _lineStyleTransformer = null; + private readonly LineStyleTransformer _lineStyleTransformer = null; private ScrollViewer _scrollViewer = null; private bool _syncScrollingByOthers = false; }