From 772bba27be0608fc04f2bda6cf49ca8e411fdecd Mon Sep 17 00:00:00 2001 From: FreezyLemon Date: Thu, 7 Dec 2017 16:41:46 +0100 Subject: [PATCH] Small style changes --- osu.Game.Tests/Visual/TestCaseChatLink.cs | 4 ++-- osu.Game/Overlays/Chat/ChatLine.cs | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/osu.Game.Tests/Visual/TestCaseChatLink.cs b/osu.Game.Tests/Visual/TestCaseChatLink.cs index bed404bfc0..1b6556e836 100644 --- a/osu.Game.Tests/Visual/TestCaseChatLink.cs +++ b/osu.Game.Tests/Visual/TestCaseChatLink.cs @@ -66,8 +66,8 @@ namespace osu.Game.Tests.Visual private class DummyMessage : Message { - private static long messageCounter = 0; - private static User sender = new User + private static long messageCounter; + private readonly static User sender = new User { Username = @"Somebody", Id = 1, diff --git a/osu.Game/Overlays/Chat/ChatLine.cs b/osu.Game/Overlays/Chat/ChatLine.cs index db7c255eb4..963fee5aa9 100644 --- a/osu.Game/Overlays/Chat/ChatLine.cs +++ b/osu.Game/Overlays/Chat/ChatLine.cs @@ -256,7 +256,6 @@ namespace osu.Game.Overlays.Chat }); } - // Add text after the last link var lastLink = message.Links[message.Links.Count - 1]; contentFlow.AddText(message.Content.Substring(lastLink.Index + lastLink.Length)); }