aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Sorting/SortNameComparer.cs
diff options
context:
space:
mode:
authorBond-009 <bond.009@outlook.com>2023-02-19 15:08:35 +0100
committerGitHub <noreply@github.com>2023-02-19 15:08:35 +0100
commitbb6f867067aad14c12a77bd1f9f5292f75d7bbfb (patch)
tree30471bc873fb0ebb93676938d600af13d7208af8 /Emby.Server.Implementations/Sorting/SortNameComparer.cs
parentde96fe1f521a9869544f4550fa2e7186f192fcd3 (diff)
parentcb85fc688f84de928e046cb6bd02629f04d68df6 (diff)
Merge pull request #9322 from Bond-009/nullable
Diffstat (limited to 'Emby.Server.Implementations/Sorting/SortNameComparer.cs')
-rw-r--r--Emby.Server.Implementations/Sorting/SortNameComparer.cs5
1 files changed, 1 insertions, 4 deletions
diff --git a/Emby.Server.Implementations/Sorting/SortNameComparer.cs b/Emby.Server.Implementations/Sorting/SortNameComparer.cs
index 628b9b3dd..19abafe19 100644
--- a/Emby.Server.Implementations/Sorting/SortNameComparer.cs
+++ b/Emby.Server.Implementations/Sorting/SortNameComparer.cs
@@ -1,5 +1,3 @@
-#nullable disable
-
using System;
using MediaBrowser.Controller.Entities;
using MediaBrowser.Controller.Sorting;
@@ -24,10 +22,9 @@ 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)
{
ArgumentNullException.ThrowIfNull(x);
-
ArgumentNullException.ThrowIfNull(y);
return string.Compare(x.SortName, y.SortName, StringComparison.OrdinalIgnoreCase);