code_style: remove unused var

Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
leo 2024-11-15 10:52:39 +08:00
parent 4835c3f1e9
commit a5f37800f6
No known key found for this signature in database

View file

@ -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<ListBoxItem>();