Removed unnecessary copy (pass-by-reference anyways)

This commit is contained in:
FreezyLemon 2017-12-07 11:12:12 +01:00
parent f3f3d1d0fc
commit bd11124e6d

View File

@ -134,14 +134,13 @@ namespace osu.Game.Online.Chat
public static Message FormatMessage(Message inputMessage)
{
var result = format(inputMessage.Content);
var formatted = inputMessage;
formatted.Content = result.Text;
inputMessage.Content = result.Text;
// Sometimes, regex matches are not in order
result.Links.Sort();
formatted.Links = result.Links;
return formatted;
inputMessage.Links = result.Links;
return inputMessage;
}
public class MessageFormatterResult