1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-14 18:32:56 +08:00

Fix unconditional null in Equals implementation

This commit is contained in:
Dean Herbert 2022-03-08 23:25:51 +09:00
parent c867068cae
commit 512536f5fe

View File

@ -64,7 +64,7 @@ namespace osu.Game.Online.Chat
if (ReferenceEquals(null, other)) return false;
if (ReferenceEquals(this, other)) return true;
return Id.HasValue && Id == other?.Id;
return Id.HasValue && Id == other.Id;
}
// ReSharper disable once ImpureMethodCallOnReadonlyValueField