Skip to content

Commit a559413

Browse files
committed
code_style: run dotnet format
Signed-off-by: leo <[email protected]>
1 parent d4302b4 commit a559413

File tree

7 files changed

+8
-9
lines changed

7 files changed

+8
-9
lines changed

src/Commands/Add.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public Add(string repo, bool includeUntracked)
1111
Context = repo;
1212
Args = includeUntracked ? "add ." : "add -u .";
1313
}
14-
14+
1515
public Add(string repo, List<Models.Change> changes)
1616
{
1717
WorkingDirectory = repo;

src/Commands/Commit.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public Commit(string repo, string message, bool amend, bool signOff)
2222
public bool Run()
2323
{
2424
var succ = Exec();
25-
25+
2626
try
2727
{
2828
File.Delete(_tmpFile);

src/ViewModels/Preference.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,7 @@ private bool RemoveNodeRecursive(RepositoryNode node, List<RepositoryNode> colle
577577
private bool RemoveInvalidRepositoriesRecursive(List<RepositoryNode> collection)
578578
{
579579
bool changed = false;
580-
580+
581581
for (int i = collection.Count - 1; i >= 0; i--)
582582
{
583583
var node = collection[i];

src/Views/Avatar.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ private static string GetFallbackString(string name)
130130

131131
if (chars.Count >= 2 && char.IsAsciiLetterOrDigit(chars[0]) && char.IsAsciiLetterOrDigit(chars[^1]))
132132
return string.Format("{0}{1}", chars[0], chars[^1]);
133-
133+
134134
return name.Substring(0, 1);
135135
}
136136

src/Views/StashesPage.axaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ private void OnStashContextRequested(object sender, ContextRequestedEventArgs e)
1919
e.Handled = true;
2020
}
2121

22-
private void OnChangeContextRequested(object sender, ContextRequestedEventArgs e)
22+
private void OnChangeContextRequested(object sender, ContextRequestedEventArgs e)
2323
{
2424
if (DataContext is ViewModels.StashesPage vm && sender is Grid grid)
2525
{

src/Views/TextDiffView.axaml.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
using Avalonia;
88
using Avalonia.Controls;
9-
using Avalonia.Controls.Primitives;
109
using Avalonia.Data;
1110
using Avalonia.Input;
1211
using Avalonia.Interactivity;

src/Views/WorkingCopy.axaml.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,9 @@ private void OnOpenConventionalCommitHelper(object _, RoutedEventArgs e)
124124
{
125125
if (DataContext is ViewModels.WorkingCopy vm)
126126
{
127-
var dialog = new ConventionalCommitMessageBuilder()
128-
{
129-
DataContext = new ViewModels.ConventionalCommitMessageBuilder(vm)
127+
var dialog = new ConventionalCommitMessageBuilder()
128+
{
129+
DataContext = new ViewModels.ConventionalCommitMessageBuilder(vm)
130130
};
131131

132132
App.OpenDialog(dialog);

0 commit comments

Comments
 (0)