Skip to content

Commit 876c63c

Browse files
committed
dont need null check as extension method accepts nulls
1 parent 749c898 commit 876c63c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

MaterialDesignThemes.Wpf/Extensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public static bool IsDescendantOf(this DependencyObject leaf, DependencyObject a
6363
parent = node;
6464
}
6565

66-
return parent != null && parent.GetLogicalAncestry().Contains(ancestor);
66+
return parent.GetLogicalAncestry().Contains(ancestor);
6767
}
6868
}
6969
}

0 commit comments

Comments
 (0)