aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Monteiro <marknr.monteiro@protonmail.com>2020-03-24 16:27:54 +0100
committerMark Monteiro <marknr.monteiro@protonmail.com>2020-03-24 16:27:54 +0100
commit4bccaafb57abbc75858896374d42819f1c73fb20 (patch)
tree4ab2f967daf8af81b28b5e081d0cbf9dba28fd99
parentaa546dd36abb688cb3a5d10e589521ebf79ef610 (diff)
Use 'Length' instead of 'Any()' for an array
-rw-r--r--MediaBrowser.WebDashboard/Api/DashboardService.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/MediaBrowser.WebDashboard/Api/DashboardService.cs b/MediaBrowser.WebDashboard/Api/DashboardService.cs
index a71d685fbb..1ca035f7bd 100644
--- a/MediaBrowser.WebDashboard/Api/DashboardService.cs
+++ b/MediaBrowser.WebDashboard/Api/DashboardService.cs
@@ -140,7 +140,7 @@ namespace MediaBrowser.WebDashboard.Api
if (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 " +