aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Sorting/CommunityRatingComparer.cs
diff options
context:
space:
mode:
authoradrez99 <59739805+adrez99@users.noreply.github.com>2022-10-11 18:15:28 +0200
committerGitHub <noreply@github.com>2022-10-11 18:15:28 +0200
commit177f53444d7f0d6541b660c4afb8d46c5614472c (patch)
treeb2d7ef47f415ccb3d5090a25fdcb612d0a55b25c /Emby.Server.Implementations/Sorting/CommunityRatingComparer.cs
parentb8afdd892af01fd99011a6dc3df65cfb762084d6 (diff)
parentd50c1b2d4bc0c85428671b288adef1b336da1156 (diff)
Merge branch 'jellyfin:master' into gzip
Diffstat (limited to 'Emby.Server.Implementations/Sorting/CommunityRatingComparer.cs')
-rw-r--r--Emby.Server.Implementations/Sorting/CommunityRatingComparer.cs10
1 files changed, 2 insertions, 8 deletions
diff --git a/Emby.Server.Implementations/Sorting/CommunityRatingComparer.cs b/Emby.Server.Implementations/Sorting/CommunityRatingComparer.cs
index 5f142fa4b..5cb11ab46 100644
--- a/Emby.Server.Implementations/Sorting/CommunityRatingComparer.cs
+++ b/Emby.Server.Implementations/Sorting/CommunityRatingComparer.cs
@@ -23,15 +23,9 @@ namespace Emby.Server.Implementations.Sorting
/// <returns>System.Int32.</returns>
public int Compare(BaseItem? x, BaseItem? y)
{
- if (x == null)
- {
- throw new ArgumentNullException(nameof(x));
- }
+ ArgumentNullException.ThrowIfNull(x);
- if (y == null)
- {
- throw new ArgumentNullException(nameof(y));
- }
+ ArgumentNullException.ThrowIfNull(y);
return (x.CommunityRating ?? 0).CompareTo(y.CommunityRating ?? 0);
}