mirror of https://github.com/ppy/osu
Fix unconditional null in `Equals` implementation
This commit is contained in:
parent
c867068cae
commit
512536f5fe
|
@ -64,7 +64,7 @@ public virtual bool Equals(Message other)
|
|||
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
|
||||
|
|
Loading…
Reference in New Issue