From 643f5e1be543ef6582cf9b90c91e804f07e2bea4 Mon Sep 17 00:00:00 2001 From: lindexi Date: Thu, 18 Jun 2020 22:55:03 +0800 Subject: [PATCH] Use Array.Empty in CompositeFileProvider (#38086) --- .../src/CompositeFileProvider.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libraries/Microsoft.Extensions.FileProviders.Composite/src/CompositeFileProvider.cs b/src/libraries/Microsoft.Extensions.FileProviders.Composite/src/CompositeFileProvider.cs index 7af6ef3cb4ecd..490cf09bd7b57 100644 --- a/src/libraries/Microsoft.Extensions.FileProviders.Composite/src/CompositeFileProvider.cs +++ b/src/libraries/Microsoft.Extensions.FileProviders.Composite/src/CompositeFileProvider.cs @@ -23,7 +23,7 @@ public class CompositeFileProvider : IFileProvider /// The collection of public CompositeFileProvider(params IFileProvider[] fileProviders) { - _fileProviders = fileProviders ?? new IFileProvider[0]; + _fileProviders = fileProviders ?? Array.Empty(); } ///