mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-17 22:43:07 +03:00
Simplified Conditionals and returns
This commit is contained in:
@@ -258,12 +258,7 @@ namespace MediaBrowser.Api
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!request.IncludeDirectories && isDirectory)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
return request.IncludeDirectories || !isDirectory;
|
||||
});
|
||||
|
||||
return entries.Select(f => new FileSystemEntryInfo
|
||||
|
||||
Reference in New Issue
Block a user