Replace F extension with string interpolation
This commit is contained in:
@@ -254,7 +254,7 @@ namespace OpenRA.Mods.Common.UpdateRules
|
||||
public static string FormatMessageList(IEnumerable<string> messages, int indent = 0, string separator = "*")
|
||||
{
|
||||
var prefix = string.Concat(Enumerable.Repeat(" ", indent));
|
||||
return string.Join("\n", messages.Select(m => prefix + " {0} {1}".F(separator, m.Replace("\n", "\n " + prefix))));
|
||||
return string.Join("\n", messages.Select(m => prefix + $" {separator} {m.Replace("\n", "\n " + prefix)}"));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user