Skip to content

Commit

Permalink
chore: Adjust test syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromelaban committed Jan 15, 2025
1 parent 0166171 commit 585aa58
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/Uno.UI/UI/Xaml/VisualStateGroup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,7 @@ private void OnParentChanged(object instance, object key, DependencyObjectParent

private void OnOwnerElementChanged()
{
if (this.GetParent() is IFrameworkElement fe
&& fe.IsParsing)
if (this.GetParent() is IFrameworkElement { IsParsing: true })
{
_pendingOnOwnerElementChanged = true;
return;
Expand Down Expand Up @@ -518,8 +517,7 @@ static bool Match(VisualTransition transition, string from, string to)

internal void RefreshStateTriggers(bool force = false)
{
if (this.GetParent() is IFrameworkElement fe
&& fe.IsParsing)
if (this.GetParent() is IFrameworkElement { IsParsing: true })
{
return;
}
Expand Down

0 comments on commit 585aa58

Please sign in to comment.