mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-05-28 03:18:27 +01:00
Enable nullable reference types for Emby.Server.Implementations
This commit is contained in:
@@ -18,7 +18,7 @@ namespace Emby.Server.Implementations.Sorting
|
||||
/// <param name="x">The x.</param>
|
||||
/// <param name="y">The y.</param>
|
||||
/// <returns>System.Int32.</returns>
|
||||
public int Compare(BaseItem x, BaseItem y)
|
||||
public int Compare(BaseItem? x, BaseItem? y)
|
||||
{
|
||||
return string.Compare(GetValue(x), GetValue(y), StringComparison.CurrentCultureIgnoreCase);
|
||||
}
|
||||
@@ -28,7 +28,7 @@ namespace Emby.Server.Implementations.Sorting
|
||||
/// </summary>
|
||||
/// <param name="x">The x.</param>
|
||||
/// <returns>System.String.</returns>
|
||||
private static string GetValue(BaseItem x)
|
||||
private static string? GetValue(BaseItem? x)
|
||||
{
|
||||
var audio = x as IHasAlbumArtist;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user