mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-03 06:18:28 +01:00
Use == instead of Object.Equals to avoid closure allocation
This commit is contained in:
@@ -2739,7 +2739,7 @@ namespace MediaBrowser.Controller.Entities
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public bool Equals(BaseItem other) => Equals(Id, other?.Id);
|
public bool Equals(BaseItem other) => Id == other?.Id;
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public override int GetHashCode() => HashCode.Combine(Id);
|
public override int GetHashCode() => HashCode.Combine(Id);
|
||||||
|
|||||||
Reference in New Issue
Block a user