The Free Software Media System - Server Backend & API
Use == instead of Object.Equals to avoid closure allocation
cvium91f3ce310960
diff --git a/MediaBrowser.Controller/Entities/BaseItem.cs b/MediaBrowser.Controller/Entities/BaseItem.csindex 4114ff7b0b..82d11c523e 100644--- a/MediaBrowser.Controller/Entities/BaseItem.cs+++ b/MediaBrowser.Controller/Entities/BaseItem.cs@@ -2739,7 +2739,7 @@ namespace MediaBrowser.Controller.Entities}/// <inheritdoc />- public bool Equals(BaseItem other) => Equals(Id, other?.Id);+ public bool Equals(BaseItem other) => Id == other?.Id;/// <inheritdoc />public override int GetHashCode() => HashCode.Combine(Id);