Skip to content

Commit

Permalink
fix: add braces around if
Browse files Browse the repository at this point in the history
  • Loading branch information
DineshSolanki committed Jul 27, 2024
1 parent 82584c8 commit 9e8efd5
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions FoliCon/Modules/UI/ListViewClickSortBehavior.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,15 @@ private void ListView_CollectionChanged(object sender, NotifyCollectionChangedEv

private void OnClick(object sender, RoutedEventArgs e)
{
if (e.OriginalSource is not GridViewColumnHeader headerClicked) return;
if (headerClicked.Role == GridViewColumnHeaderRole.Padding) return;
if (e.OriginalSource is not GridViewColumnHeader headerClicked)
{
return;
}

if (headerClicked.Role == GridViewColumnHeaderRole.Padding)
{
return;
}

ListSortDirection direction;
if (headerClicked != _lastHeaderClicked)
Expand Down

0 comments on commit 9e8efd5

Please sign in to comment.