diff --git a/Photino.NET/PhotinoServer.NET.cs b/Photino.NET/PhotinoServer.NET.cs index 28f445b..0866e8e 100644 --- a/Photino.NET/PhotinoServer.NET.cs +++ b/Photino.NET/PhotinoServer.NET.cs @@ -44,21 +44,10 @@ public static WebApplication CreateStaticFileServer( System.Reflection.Assembly.GetEntryAssembly(), $"Resources/{webRootFolder}"); - bool hasEmbeddedContents = manifestEmbeddedFileProvider - .GetDirectoryContents("") - .Any(); - var physicalFileProvider = builder.Environment.WebRootFileProvider; - CompositeFileProvider compositeWebProvider; - if (hasEmbeddedContents) - { - compositeWebProvider = new(manifestEmbeddedFileProvider, physicalFileProvider); - } - else - { - compositeWebProvider = new(physicalFileProvider); - } + CompositeFileProvider compositeWebProvider + = new(manifestEmbeddedFileProvider, physicalFileProvider); builder.Environment.WebRootFileProvider = compositeWebProvider;