Skip to content

Commit cb5ec16

Browse files
committed
Remove check that we've rendered obsolete
1 parent 5fded62 commit cb5ec16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/DependencyProperty.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -977,7 +977,7 @@ internal static DependencyProperty FromName(string name, Type ownerType)
977977
ArgumentNullException.ThrowIfNull(name);
978978
ArgumentNullException.ThrowIfNull(ownerType);
979979

980-
while ((dp == null) && (ownerType != null))
980+
while (ownerType != null)
981981
{
982982
// Ensure static constructor of type has run
983983
SecurityHelper.RunClassConstructor(ownerType);

0 commit comments

Comments
 (0)