From a5f37800f6c3e9e1e4993f19ea9c6212547d2ab8 Mon Sep 17 00:00:00 2001 From: leo Date: Fri, 15 Nov 2024 10:52:39 +0800 Subject: [PATCH] code_style: remove unused var Signed-off-by: leo --- src/Views/Histories.axaml.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Views/Histories.axaml.cs b/src/Views/Histories.axaml.cs index 976d46cb..7edcb295 100644 --- a/src/Views/Histories.axaml.cs +++ b/src/Views/Histories.axaml.cs @@ -730,7 +730,7 @@ namespace SourceGit.Views private void OnCommitListDoubleTapped(object sender, TappedEventArgs e) { - if (DataContext is ViewModels.Histories histories && sender is ListBox { SelectedItems: { Count: 1 } } listBox) + if (DataContext is ViewModels.Histories histories && sender is ListBox { SelectedItems: { Count: 1 } }) { var source = e.Source as Control; var item = source.FindAncestorOfType();