mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-08-27 04:16:47 +00:00
Fix warnings, improve performance (#1665)
* Fix warnings, improve performance `QueryResult.Items` is now a `IReadOnlyList` so we don't need to allocate a new `Array` when we have a `List` (and `Items` shouldn't need to be mutable anyway) * Update Providers .csproj to latest C# * Remove extra newline from DtoService.cs * Remove extra newline from UserLibraryService.cs
This commit is contained in:
parent
cb393c215a
commit
ee637e8fec
37 changed files with 308 additions and 218 deletions
|
|
@ -228,7 +228,7 @@ namespace MediaBrowser.LocalMetadata.Savers
|
|||
}
|
||||
}
|
||||
|
||||
if (item.RemoteTrailers.Length > 0)
|
||||
if (item.RemoteTrailers.Count > 0)
|
||||
{
|
||||
writer.WriteStartElement("Trailers");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue