Skip to content

Commit

Permalink
chore: Avoid redundant type check
Browse files Browse the repository at this point in the history
  • Loading branch information
Youssef1313 committed Feb 10, 2024
1 parent 47f8f7f commit c675268
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Uno.UI/UI/Xaml/DependencyObjectStore.Binder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ private bool IsCandidateChild([NotNullWhen(true)] object? child)

// The property value may be an enumerable of providers
var isValidEnumerable = child is not string;
return isValidEnumerable && child is IList or IEnumerable;
return isValidEnumerable && child is IEnumerable;
}

private void ApplyChildrenBindable(object? inheritedValue, bool isTemplatedParent)
Expand Down

0 comments on commit c675268

Please sign in to comment.