mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-05-04 07:46:32 +01: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:
@@ -234,7 +234,7 @@ namespace MediaBrowser.Model.Dto
|
||||
/// Gets or sets the trailer urls.
|
||||
/// </summary>
|
||||
/// <value>The trailer urls.</value>
|
||||
public MediaUrl[] RemoteTrailers { get; set; }
|
||||
public IReadOnlyCollection<MediaUrl> RemoteTrailers { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the provider ids.
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace MediaBrowser.Model.Dto
|
||||
{
|
||||
public class RecommendationDto
|
||||
{
|
||||
public BaseItemDto[] Items { get; set; }
|
||||
public IReadOnlyCollection<BaseItemDto> Items { get; set; }
|
||||
|
||||
public RecommendationType RecommendationType { get; set; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user