Просмотр исходного кода

Fixup build warning (#39817)

Currently only appears only in VS

Fixes https://github.com/aspnet/AspNetCore-ManualTests/issues/1149
Pranav K 4 лет назад
Родитель
Сommit
258028cde7
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/Components/Components/src/Sections/SectionRegistry.cs

+ 1 - 1
src/Components/Components/src/Sections/SectionRegistry.cs

@@ -88,7 +88,7 @@ internal sealed class SectionRegistry
         }
     }
 
-    private RenderFragment? GetCurrentProviderContentOrDefault(List<ISectionContentProvider> providers)
+    private static RenderFragment? GetCurrentProviderContentOrDefault(List<ISectionContentProvider> providers)
         => providers.Count != 0
             ? providers[^1].Content
             : null;