mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-04-24 05:57:20 -04:00
Use 'Length' instead of 'Any()' for an array
This commit is contained in:
parent
aa546dd36a
commit
4bccaafb57
1 changed files with 1 additions and 1 deletions
|
@ -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 " +
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue