Skip to content

Commit 9d28212

Browse files
committed
style(core): explicit foreach type in config registry factory (IDE0008)
1 parent 94a0bf5 commit 9d28212

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/NeoReports.Core/DependencyInjection/ServiceCollectionExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ private static ReportRegistry GetOrAddRegistry(IServiceCollection services)
117117
// service provider — and thus the source/format/destination providers — is available.
118118
services.AddSingleton<IReportRegistry>(serviceProvider =>
119119
{
120-
foreach (var config in serviceProvider.GetServices<ReportConfig>())
120+
foreach (ReportConfig config in serviceProvider.GetServices<ReportConfig>())
121121
registry.Register(ReportConfigCompiler.Compile(config, serviceProvider));
122122
return registry;
123123
});

0 commit comments

Comments
 (0)