Nullify RuntimeInformation

This commit is contained in:
Jordan Dominion
2023-12-23 10:02:05 -05:00
parent e39577c7f4
commit d854a630ce
@@ -9,8 +9,6 @@ using Tgstation.Server.Host.Components.Chat;
using Tgstation.Server.Host.Components.Deployment;
using Tgstation.Server.Host.System;
#nullable disable
namespace Tgstation.Server.Host.Components.Interop.Bridge
{
/// <summary>
@@ -93,11 +91,11 @@ namespace Tgstation.Server.Host.Components.Interop.Bridge
OriginCommitSha = dmbProvider.CompileJob.RevisionInformation.OriginCommitSha,
};
TestMerges = (IReadOnlyCollection<TestMergeInformation>)dmbProvider
TestMerges = (IReadOnlyCollection<TestMergeInformation>?)dmbProvider
.CompileJob
.RevisionInformation
.ActiveTestMerges?
.Select(x => x.TestMerge)
.ActiveTestMerges
?.Select(x => x.TestMerge)
.Select(x => new TestMergeInformation(x, Revision))
.ToList()
?? Array.Empty<TestMergeInformation>();