From 7b9dafcd1994d6ce2adeb300e4744e70f454215c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Mon, 18 Apr 2022 16:45:03 +0200 Subject: [PATCH] Code cleanup. --- .../UtilityCommands/ExtractSettingsDocsCommand.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OpenRA.Mods.Common/UtilityCommands/ExtractSettingsDocsCommand.cs b/OpenRA.Mods.Common/UtilityCommands/ExtractSettingsDocsCommand.cs index e49a17965a..d9792ed05f 100644 --- a/OpenRA.Mods.Common/UtilityCommands/ExtractSettingsDocsCommand.cs +++ b/OpenRA.Mods.Common/UtilityCommands/ExtractSettingsDocsCommand.cs @@ -35,7 +35,7 @@ namespace OpenRA.Mods.Common.UtilityCommands Console.WriteLine( "This documentation displays annotated settings with default values and description. " + "Please do not edit it directly, but add new `[Desc(\"String\")]` tags to the source code. This file has been " + - "automatically generated for version {0} of OpenRA.", version); + $"automatically generated for version {version} of OpenRA."); Console.WriteLine(); Console.WriteLine("All settings can be changed by starting the game via a command-line parameter like `Game.Mod=ra`."); Console.WriteLine(); @@ -80,7 +80,7 @@ namespace OpenRA.Mods.Common.UtilityCommands var value = field.GetValue(section.Value); if (value != null && !value.ToString().StartsWith("System.")) { - Console.WriteLine("**Default Value:** {0}", value); + Console.WriteLine($"**Default Value:** {value}"); Console.WriteLine(); Console.WriteLine("```miniyaml"); Console.WriteLine($"{section.Key}: ");