aboutsummaryrefslogtreecommitdiff
path: root/src/Jellyfin.Extensions/AlphanumericComparator.cs
diff options
context:
space:
mode:
authorStepan Goremykin <goremukin@gmail.com>2023-04-06 19:38:34 +0200
committerStepan Goremykin <goremukin@gmail.com>2023-04-06 19:38:34 +0200
commit910617bbc3b960ff6a1e1c18c27a0b42a4be9ee0 (patch)
tree9ed2d33f6439b02295697c93151bc2d14de0ec81 /src/Jellyfin.Extensions/AlphanumericComparator.cs
parentb6cfdb8b92650aa4f5c33b9523700ffeaa7694d0 (diff)
Remove redundant 'else' keywords
Diffstat (limited to 'src/Jellyfin.Extensions/AlphanumericComparator.cs')
-rw-r--r--src/Jellyfin.Extensions/AlphanumericComparator.cs15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/Jellyfin.Extensions/AlphanumericComparator.cs b/src/Jellyfin.Extensions/AlphanumericComparator.cs
index 6e451d40e..299e2f94a 100644
--- a/src/Jellyfin.Extensions/AlphanumericComparator.cs
+++ b/src/Jellyfin.Extensions/AlphanumericComparator.cs
@@ -20,11 +20,13 @@ namespace Jellyfin.Extensions
{
return 0;
}
- else if (s1 is null)
+
+ if (s1 is null)
{
return -1;
}
- else if (s2 is null)
+
+ if (s2 is null)
{
return 1;
}
@@ -37,11 +39,13 @@ namespace Jellyfin.Extensions
{
return 0;
}
- else if (len1 == 0)
+
+ if (len1 == 0)
{
return -1;
}
- else if (len2 == 0)
+
+ if (len2 == 0)
{
return 1;
}
@@ -82,7 +86,8 @@ namespace Jellyfin.Extensions
{
return -1;
}
- else if (span1Len > span2Len)
+
+ if (span1Len > span2Len)
{
return 1;
}