Skip to content

Commit d588799

Browse files
committed
refactor: 更新代码逻辑
1 parent accb812 commit d588799

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/BootstrapBlazor.Server/Components/Samples/Sockets/DataEntities.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ if (attr is { Type: not null })
8989
{
9090
var value = attr.ConvertTo(data);
9191
var valueType = value?.GetType();
92-
if (valueType != null && p.PropertyType.IsAssignableFrom(valueType))
92+
if (p.PropertyType.IsAssignableFrom(valueType))
9393
{
9494
p.SetValue(entity, value);
9595
}

0 commit comments

Comments
 (0)