mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-13 03:13:32 +02:00
Use == instead of Object.Equals to avoid closure allocation
This commit is contained in:
parent
cd760943a9
commit
91f3ce3109
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue