From 847bbf57106cf5600ddf3f2d9adf0f90939b9cf8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Thu, 17 Nov 2022 22:01:52 +0100 Subject: [PATCH] Use out parameter modifier code style. --- OpenRA.Mods.Common/Scripting/Global/UserInterfaceGlobal.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRA.Mods.Common/Scripting/Global/UserInterfaceGlobal.cs b/OpenRA.Mods.Common/Scripting/Global/UserInterfaceGlobal.cs index 80e1f50af6..f07d7d3e6b 100644 --- a/OpenRA.Mods.Common/Scripting/Global/UserInterfaceGlobal.cs +++ b/OpenRA.Mods.Common/Scripting/Global/UserInterfaceGlobal.cs @@ -44,7 +44,7 @@ namespace OpenRA.Mods.Common.Scripting.Global using (kv.Key) using (kv.Value) { - if (!kv.Key.TryGetClrValue(out string variable) || !kv.Value.TryGetClrValue(out object value)) + if (!kv.Key.TryGetClrValue(out var variable) || !kv.Value.TryGetClrValue(out var value)) throw new LuaException($"Translation arguments requires a table of [\"string\"]=value pairs. Received {kv.Key.WrappedClrType().Name},{kv.Value.WrappedClrType().Name}"); argumentDictionary.Add(variable, value);