The Free Software Media System - Server Backend & API
Use 'Length' instead of 'Any()' for an array
Mark Monteiro4bccaafb57ab
diff --git a/MediaBrowser.WebDashboard/Api/DashboardService.cs b/MediaBrowser.WebDashboard/Api/DashboardService.csindex a71d685fbb..1ca035f7bd 100644--- a/MediaBrowser.WebDashboard/Api/DashboardService.cs+++ b/MediaBrowser.WebDashboard/Api/DashboardService.cs@@ -140,7 +140,7 @@ namespace MediaBrowser.WebDashboard.Apiif (appConfig.HostWebClient()){string webContentPath = DashboardUIPath;- if (!Directory.Exists(webContentPath) || !Directory.GetFiles(webContentPath).Any())+ if (!Directory.Exists(webContentPath) || Directory.GetFiles(webContentPath).Length == 0){throw new InvalidOperationException("The server is expected to host the web client, but the provided content directory is either " +