diff --git a/OpenRA.Mods.Common/ItchIntegration.cs b/OpenRA.Mods.Common/ItchIntegration.cs index 95a1a8c455..6002e6a4b1 100644 --- a/OpenRA.Mods.Common/ItchIntegration.cs +++ b/OpenRA.Mods.Common/ItchIntegration.cs @@ -75,16 +75,16 @@ namespace OpenRA.Mods.Common } } - var name = ""; if (user != null) { + string name; if (string.IsNullOrEmpty(user.DisplayName)) name = user.Username; else name = user.DisplayName; - } - Game.RunAfterTick(() => callback?.Invoke(name)); + Game.RunAfterTick(() => callback?.Invoke(name)); + } }); } }