Apply code suggestion

This commit is contained in:
Jordan Dominion
2024-09-15 11:46:11 -04:00
parent 269476cdd9
commit bca2a225c3
@@ -251,10 +251,8 @@ namespace Tgstation.Server.Host.Components.Engine
await Task.WhenAll(dirsMoveTasks.Concat(filesMoveTask));
}
var dotnetPath = await DotnetHelper.GetDotnetPath(platformIdentifier, IOManager, cancellationToken);
if (dotnetPath == null)
throw new JobException(ErrorCode.OpenDreamCantFindDotnet);
var dotnetPath = (await DotnetHelper.GetDotnetPath(platformIdentifier, IOManager, cancellationToken))
?? throw new JobException(ErrorCode.OpenDreamCantFindDotnet);
const string DeployDir = "tgs_deploy";
int? buildExitCode = null;
await HandleExtremelyLongPathOperation(