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; }