diff options
| author | cvium <clausvium@gmail.com> | 2021-12-19 18:24:05 +0100 |
|---|---|---|
| committer | cvium <clausvium@gmail.com> | 2021-12-19 18:24:05 +0100 |
| commit | 91f3ce31096070fa21409aedcbd45e2a530833fe (patch) | |
| tree | 0f1a2290037bc0c25a0bffd30cb58051e3fe6848 /MediaBrowser.Controller/Entities/BaseItem.cs | |
| parent | cd760943a9d554c560f35be2ee134969a224f92a (diff) | |
Use == instead of Object.Equals to avoid closure allocation
Diffstat (limited to 'MediaBrowser.Controller/Entities/BaseItem.cs')
| -rw-r--r-- | MediaBrowser.Controller/Entities/BaseItem.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/MediaBrowser.Controller/Entities/BaseItem.cs b/MediaBrowser.Controller/Entities/BaseItem.cs index 4114ff7b0..82d11c523 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); |
