diff --git a/src/Tgstation.Server.Host/Components/Engine/OpenDreamInstaller.cs b/src/Tgstation.Server.Host/Components/Engine/OpenDreamInstaller.cs index c24619d084..ad2fb20e95 100644 --- a/src/Tgstation.Server.Host/Components/Engine/OpenDreamInstaller.cs +++ b/src/Tgstation.Server.Host/Components/Engine/OpenDreamInstaller.cs @@ -123,10 +123,8 @@ public override async ValueTask CreateInstallation(EngineVe CheckVersionValidity(version); GetExecutablePaths(path, out var serverExePath, out var compilerExePath); - var dotnetPath = await DotnetHelper.GetDotnetPath(platformIdentifier, IOManager, cancellationToken); - if (dotnetPath == null) - throw new JobException("Failed to find dotnet path!"); - + var dotnetPath = (await DotnetHelper.GetDotnetPath(platformIdentifier, IOManager, cancellationToken)) + ?? throw new JobException("Failed to find dotnet path!"); return new OpenDreamInstallation( new ResolvingIOManager(IOManager, path), asyncDelayer,