Fix logic error in EngineCommand

This commit is contained in:
Jordan Dominion
2023-11-14 23:26:52 -05:00
parent b7b3f0db3f
commit f286b0f46d
@@ -75,6 +75,7 @@ namespace Tgstation.Server.Host.Components.Chat.Commands
if (engineVersion == null)
text = "None!";
else
{
text = engineVersion.Engine.Value switch
{
EngineType.OpenDream => $"OpenDream: {engineVersion.SourceSHA}",
@@ -82,8 +83,9 @@ namespace Tgstation.Server.Host.Components.Chat.Commands
_ => throw new InvalidOperationException($"Invalid EngineType: {engineVersion.Engine.Value}"),
};
if (engineVersion.CustomIteration.HasValue)
text += $" (Custom Upload #{engineVersion.CustomIteration.Value})";
if (engineVersion.CustomIteration.HasValue)
text += $" (Custom Upload #{engineVersion.CustomIteration.Value})";
}
return ValueTask.FromResult(
new MessageContent