1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-16 03:02:56 +08:00

Use Equals instead of reference equality operator

This commit is contained in:
Salman Ahmed 2022-03-08 03:56:27 +03:00
parent f645869958
commit d74064b94b

View File

@ -92,7 +92,7 @@ namespace osu.Game.Overlays.Chat
if (m.NewValue == null) if (m.NewValue == null)
return; return;
var chatLine = chatLines.SingleOrDefault(c => c.Message == m.NewValue); var chatLine = chatLines.SingleOrDefault(c => c.Message.Equals(m.NewValue));
if (chatLine != null) if (chatLine != null)
{ {