aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Sorting/SortNameComparer.cs
diff options
context:
space:
mode:
authorBond-009 <bond.009@outlook.com>2020-06-20 16:48:48 +0200
committerGitHub <noreply@github.com>2020-06-20 16:48:48 +0200
commitbeb3896d7fba09e038b45c784273dbea1e48013c (patch)
tree55e9c9102f67e11ac0225c25166c2e4caaf012eb /Emby.Server.Implementations/Sorting/SortNameComparer.cs
parente8e5208fbd9484a1b37eed5dece524f108886fe0 (diff)
parent6556bec646a28d08267f30640125865cf42240d0 (diff)
Merge pull request #3390 from telans/fixes
Multiple warning fixes
Diffstat (limited to 'Emby.Server.Implementations/Sorting/SortNameComparer.cs')
-rw-r--r--Emby.Server.Implementations/Sorting/SortNameComparer.cs4
1 files changed, 4 insertions, 0 deletions
diff --git a/Emby.Server.Implementations/Sorting/SortNameComparer.cs b/Emby.Server.Implementations/Sorting/SortNameComparer.cs
index 93389fc3e..f745e193b 100644
--- a/Emby.Server.Implementations/Sorting/SortNameComparer.cs
+++ b/Emby.Server.Implementations/Sorting/SortNameComparer.cs
@@ -19,10 +19,14 @@ namespace Emby.Server.Implementations.Sorting
public int Compare(BaseItem x, BaseItem y)
{
if (x == null)
+ {
throw new ArgumentNullException(nameof(x));
+ }
if (y == null)
+ {
throw new ArgumentNullException(nameof(y));
+ }
return string.Compare(x.SortName, y.SortName, StringComparison.CurrentCultureIgnoreCase);
}