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

This commit is contained in:
cvium 2021-12-19 18:24:05 +01:00
parent cd760943a9
commit 91f3ce3109

View File

@ -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);