aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Sorting/RuntimeComparer.cs
diff options
context:
space:
mode:
authorDavid <daullmer@gmail.com>2020-07-21 10:32:05 +0200
committerGitHub <noreply@github.com>2020-07-21 10:32:05 +0200
commit5b57c81ee14ce585161b9ac331e6e3528826b815 (patch)
tree762c571faa5715ffd0062b790099b1113faccc37 /Emby.Server.Implementations/Sorting/RuntimeComparer.cs
parent352dab701866b37d0dd5dcaa6343ccc256d7e837 (diff)
parent5c66f9e4716961dc40e0444c7d261dfd2e5841d7 (diff)
Merge pull request #3629 from crobibero/api-migration-merge
Api migration merge
Diffstat (limited to 'Emby.Server.Implementations/Sorting/RuntimeComparer.cs')
-rw-r--r--Emby.Server.Implementations/Sorting/RuntimeComparer.cs6
1 files changed, 5 insertions, 1 deletions
diff --git a/Emby.Server.Implementations/Sorting/RuntimeComparer.cs b/Emby.Server.Implementations/Sorting/RuntimeComparer.cs
index 1d2bdde26..dde44333d 100644
--- a/Emby.Server.Implementations/Sorting/RuntimeComparer.cs
+++ b/Emby.Server.Implementations/Sorting/RuntimeComparer.cs
@@ -6,7 +6,7 @@ using MediaBrowser.Model.Querying;
namespace Emby.Server.Implementations.Sorting
{
/// <summary>
- /// Class RuntimeComparer
+ /// Class RuntimeComparer.
/// </summary>
public class RuntimeComparer : IBaseItemComparer
{
@@ -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 (x.RunTimeTicks ?? 0).CompareTo(y.RunTimeTicks ?? 0);
}