Skip to content

Commit e215329

Browse files
committed
refactor: 优化代码
1 parent 89d7917 commit e215329

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/BootstrapBlazor/Services/CacheManager.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -152,10 +152,7 @@ public static int ElementCount(object? value)
152152
entry.SetDynamicAssemblyPolicy(type);
153153
return LambdaExtensions.CountLambda(type).Compile();
154154
});
155-
if (invoker != null)
156-
{
157-
ret = invoker(value);
158-
}
155+
ret = invoker(value);
159156
}
160157
return ret;
161158
}

0 commit comments

Comments
 (0)