From 91f3ce31096070fa21409aedcbd45e2a530833fe Mon Sep 17 00:00:00 2001 From: cvium Date: Sun, 19 Dec 2021 18:24:05 +0100 Subject: [PATCH] Use == instead of Object.Equals to avoid closure allocation --- MediaBrowser.Controller/Entities/BaseItem.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MediaBrowser.Controller/Entities/BaseItem.cs b/MediaBrowser.Controller/Entities/BaseItem.cs index 4114ff7b0..82d11c523 100644 --- a/MediaBrowser.Controller/Entities/BaseItem.cs +++ b/MediaBrowser.Controller/Entities/BaseItem.cs @@ -2739,7 +2739,7 @@ namespace MediaBrowser.Controller.Entities } /// - public bool Equals(BaseItem other) => Equals(Id, other?.Id); + public bool Equals(BaseItem other) => Id == other?.Id; /// public override int GetHashCode() => HashCode.Combine(Id);