Skip to content

Commit 57004c4

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

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

src/Models/Change.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public class Change
5353
public bool IsConflicted => WorkTree == ChangeState.Conflicted;
5454
public string ConflictMarker => CONFLICT_MARKERS[(int)ConflictReason];
5555
public string ConflictDesc => CONFLICT_DESCS[(int)ConflictReason];
56-
56+
5757
public string WorkTreeDesc => TYPE_DESCS[(int)WorkTree];
5858
public string IndexDesc => TYPE_DESCS[(int)Index];
5959

@@ -87,17 +87,17 @@ public void Set(ChangeState index, ChangeState workTree = ChangeState.None)
8787
if (!string.IsNullOrEmpty(OriginalPath) && OriginalPath[0] == '"')
8888
OriginalPath = OriginalPath.Substring(1, OriginalPath.Length - 2);
8989
}
90-
91-
private static readonly string[] TYPE_DESCS =
90+
91+
private static readonly string[] TYPE_DESCS =
9292
[
9393
"Unknown",
9494
"Modified",
9595
"Type Changed",
96-
"Added",
97-
"Deleted",
98-
"Renamed",
99-
"Copied",
100-
"Untracked",
96+
"Added",
97+
"Deleted",
98+
"Renamed",
99+
"Copied",
100+
"Untracked",
101101
"Conflict"
102102
];
103103
private static readonly string[] CONFLICT_MARKERS =

src/Views/ChangeCollectionView.axaml.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -235,10 +235,10 @@ private void OnRowDataContextChanged(object sender, EventArgs e)
235235
{
236236
if (sender is not Control control)
237237
return;
238-
238+
239239
if (control.DataContext is ViewModels.ChangeTreeNode node)
240240
{
241-
if (node.Change is {} c)
241+
if (node.Change is { } c)
242242
UpdateRowTips(control, c);
243243
else
244244
ToolTip.SetTip(control, node.FullPath);
@@ -501,10 +501,10 @@ private void UpdateRowTips(Control control, Models.Change change)
501501
tip.Inlines!.Add(new Run(" • ") { Foreground = Brushes.Gray });
502502
tip.Inlines!.Add(new Run(change.ConflictDesc) { Foreground = Brushes.Gray });
503503
}
504-
504+
505505
ToolTip.SetTip(control, tip);
506506
}
507-
507+
508508
private bool _disableSelectionChangingEvent = false;
509509
}
510510
}

0 commit comments

Comments
 (0)