Skip to content

Commit 84b8735

Browse files
committed
code_style: run dotnet format
1 parent 7fe1df2 commit 84b8735

File tree

11 files changed

+23
-26
lines changed

11 files changed

+23
-26
lines changed

src/Commands/Fetch.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
using System;
2-
using System.Collections.Generic;
3-
using System.Threading;
4-
using System.Threading.Tasks;
52

63
namespace SourceGit.Commands
74
{

src/Models/AutoFetchManager.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ public static AutoFetchManager Instance
1717
return _instance;
1818
}
1919
}
20-
20+
2121
public class Job
2222
{
2323
public Commands.Fetch Cmd = null;
2424
public DateTime NextRunTimepoint = DateTime.MinValue;
2525
}
26-
26+
2727
public bool IsEnabled
2828
{
2929
get;
@@ -36,7 +36,7 @@ public int Interval
3636
set
3737
{
3838
_interval = Math.Max(1, value);
39-
39+
4040
lock (_lock)
4141
{
4242
foreach (var job in _jobs)
@@ -81,7 +81,7 @@ public void Start()
8181

8282
Thread.Sleep(2000);
8383
}
84-
84+
8585
// ReSharper disable once FunctionNeverReturns
8686
});
8787
}

src/Models/AvatarManager.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ public static AvatarManager Instance
3232
return _instance;
3333
}
3434
}
35-
35+
3636
private static AvatarManager _instance = null;
37-
37+
3838
[GeneratedRegex(@"^(?:(\d+)\+)?(.+?)@users\.noreply\.github\.com$")]
3939
private static partial Regex REG_GITHUB_USER_EMAIL();
4040

@@ -43,7 +43,7 @@ public static AvatarManager Instance
4343
private List<IAvatarHost> _avatars = new List<IAvatarHost>();
4444
private Dictionary<string, Bitmap> _resources = new Dictionary<string, Bitmap>();
4545
private HashSet<string> _requesting = new HashSet<string>();
46-
46+
4747
public void Start()
4848
{
4949
_storePath = Path.Combine(Native.OS.DataDir, "avatars");
@@ -121,7 +121,7 @@ public void Start()
121121
NotifyResourceChanged(email);
122122
});
123123
}
124-
124+
125125
// ReSharper disable once FunctionNeverReturns
126126
});
127127
}

src/Models/ExternalTool.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public class JetBrainsTool
8282
public class ExternalToolPaths
8383
{
8484
[JsonPropertyName("tools")]
85-
public Dictionary<string, string> Tools { get; set; } = new Dictionary<string, string>();
85+
public Dictionary<string, string> Tools { get; set; } = new Dictionary<string, string>();
8686
}
8787

8888
public class ExternalToolsFinder

src/Models/TextMateHelper.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public RegistryOptionsWrapper(ThemeName defaultTheme)
4141
}
4242
}
4343
}
44-
44+
4545
public IRawTheme GetTheme(string scopeName)
4646
{
4747
return _backend.GetTheme(scopeName);
@@ -74,7 +74,7 @@ public string GetScopeByFileName(string filename)
7474
var grammar = _extraGrammars.Find(x => x.GetScopeName().EndsWith(extension, StringComparison.OrdinalIgnoreCase));
7575
if (grammar != null)
7676
return grammar.GetScopeName();
77-
77+
7878
if (extension == ".h")
7979
extension = ".cpp";
8080
else if (extension == ".resx" || extension == ".plist" || extension == ".manifest")
@@ -88,7 +88,7 @@ public string GetScopeByFileName(string filename)
8888
private readonly RegistryOptions _backend;
8989
private readonly List<IRawGrammar> _extraGrammars;
9090
}
91-
91+
9292
public static class TextMateHelper
9393
{
9494
public static TextMate.Installation CreateForEditor(TextEditor editor)

src/ViewModels/CommitDetail.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ public ContextMenu CreateChangeContextMenu(Models.Change change)
320320
var window = new Views.Blame() { DataContext = new Blame(_repo.FullPath, change.Path, _commit.SHA) };
321321
window.Show();
322322
ev.Handled = true;
323-
};
323+
};
324324

325325
menu.Items.Add(history);
326326
menu.Items.Add(blame);
@@ -415,7 +415,7 @@ public ContextMenu CreateRevisionFileContextMenu(Models.Object file)
415415
window.Show();
416416
ev.Handled = true;
417417
};
418-
418+
419419
var copyPath = new MenuItem();
420420
copyPath.Header = App.Text("CopyPath");
421421
copyPath.Icon = App.CreateMenuIcon("Icons.Copy");

src/ViewModels/Preference.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ public int? GitAutoFetchInterval
279279
{
280280
if (value is null || value < 1)
281281
return;
282-
282+
283283
if (Models.AutoFetchManager.Instance.Interval != value)
284284
{
285285
Models.AutoFetchManager.Instance.Interval = (int)value;

src/ViewModels/WorkingCopy.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1312,7 +1312,7 @@ private void DoCommit(bool autoPush)
13121312
var succ = true;
13131313
if (autoStage && _unstaged.Count > 0)
13141314
succ = new Commands.Add(_repo.FullPath).Exec();
1315-
1315+
13161316
if (succ)
13171317
succ = new Commands.Commit(_repo.FullPath, _commitMessage, _useAmend).Exec();
13181318

src/Views/Blame.axaml.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public override void Render(DrawingContext context)
4242
{
4343
if (line.IsDisposed || line.FirstDocumentLine == null || line.FirstDocumentLine.IsDeleted)
4444
continue;
45-
45+
4646
var lineNumber = line.FirstDocumentLine.LineNumber;
4747
if (lineNumber > _editor.BlameData.LineInfos.Count)
4848
break;
@@ -156,7 +156,7 @@ protected override void OnPointerPressed(PointerPressedEventArgs e)
156156
{
157157
if (line.IsDisposed || line.FirstDocumentLine == null || line.FirstDocumentLine.IsDeleted)
158158
continue;
159-
159+
160160
var lineNumber = line.FirstDocumentLine.LineNumber;
161161
if (lineNumber >= _editor.BlameData.LineInfos.Count)
162162
break;

src/Views/CommitBaseInfo.axaml.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ private void OnOpenWebLink(object sender, RoutedEventArgs e)
4848
if (links.Count > 1)
4949
{
5050
var menu = new ContextMenu();
51-
51+
5252
foreach (var link in links)
5353
{
5454
var url = $"{link.URLPrefix}{detail.Commit.SHA}";
@@ -69,7 +69,7 @@ private void OnOpenWebLink(object sender, RoutedEventArgs e)
6969
var url = $"{links[0].URLPrefix}{detail.Commit.SHA}";
7070
Native.OS.OpenBrowser(url);
7171
}
72-
}
72+
}
7373

7474
e.Handled = true;
7575
}

0 commit comments

Comments
 (0)