mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-23 21:16:52 +01:00
Nullify EngineInstallerBase
This commit is contained in:
@@ -8,8 +8,6 @@ using Tgstation.Server.Api.Models;
|
||||
using Tgstation.Server.Host.IO;
|
||||
using Tgstation.Server.Host.Jobs;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace Tgstation.Server.Host.Components.Engine
|
||||
{
|
||||
/// <inheritdoc />
|
||||
@@ -66,7 +64,7 @@ namespace Tgstation.Server.Host.Components.Engine
|
||||
protected void CheckVersionValidity(EngineVersion version)
|
||||
{
|
||||
ArgumentNullException.ThrowIfNull(version);
|
||||
if (version.Engine.Value != TargetEngineType)
|
||||
if (version.Engine!.Value != TargetEngineType)
|
||||
throw new InvalidOperationException($"Non-{TargetEngineType} engine specified: {version.Engine.Value}");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user