From f6d13baf4be055997fe84e3c808e479b664eaaf4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Sun, 25 Sep 2022 19:47:16 +0200 Subject: [PATCH] Use inline strings. --- OpenRA.Utility/Program.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/OpenRA.Utility/Program.cs b/OpenRA.Utility/Program.cs index 7f7f51398b..ac863f11c3 100644 --- a/OpenRA.Utility/Program.cs +++ b/OpenRA.Utility/Program.cs @@ -119,7 +119,7 @@ namespace OpenRA } else { - Console.WriteLine("Invalid arguments for '{0}'", command); + Console.WriteLine($"Invalid arguments for '{command}'"); GetActionUsage(command, action); Environment.Exit(1); } @@ -127,8 +127,8 @@ namespace OpenRA catch (Exception e) { Log.AddChannel("utility", "utility.log"); - Log.Write("utility", "Received args: {0}", args.JoinWith(" ")); - Log.Write("utility", "{0}", e); + Log.Write("utility", $"Received args: {args.JoinWith(" ")}"); + Log.Write("utility", e); if (e is NoSuchCommandException) {