Procházet zdrojové kódy

Use == instead of Object.Equals to avoid closure allocation

cvium před 3 roky
rodič
revize
91f3ce3109
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      MediaBrowser.Controller/Entities/BaseItem.cs

+ 1 - 1
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);