Skip to content

Commit e36a111

Browse files
committed
refactor: 移除可为空判断
1 parent 76a84c6 commit e36a111

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/BootstrapBlazor/Services/CacheManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ private static JsonLocalizationOptions GetJsonLocalizationOption()
193193
{
194194
IStringLocalizer? ret = null;
195195
var factories = Instance.Provider.GetServices<IStringLocalizerFactory>();
196-
var factory = factories?.LastOrDefault(a => a is not JsonStringLocalizerFactory);
196+
var factory = factories.LastOrDefault(a => a is not JsonStringLocalizerFactory);
197197
if (factory != null)
198198
{
199199
var type = assembly.GetType(typeName);

0 commit comments

Comments
 (0)