From f8e4af3be5e96fc3beee4fd49defbdd576d3b854 Mon Sep 17 00:00:00 2001 From: Jordan Dominion Date: Sat, 23 Dec 2023 12:08:12 -0500 Subject: [PATCH] Nullify `LaunchResult` --- .../Components/Session/LaunchResult.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Tgstation.Server.Host/Components/Session/LaunchResult.cs b/src/Tgstation.Server.Host/Components/Session/LaunchResult.cs index de536ce83e..eb44b6e55f 100644 --- a/src/Tgstation.Server.Host/Components/Session/LaunchResult.cs +++ b/src/Tgstation.Server.Host/Components/Session/LaunchResult.cs @@ -1,8 +1,6 @@ using System; using System.Globalization; -#nullable disable - namespace Tgstation.Server.Host.Components.Session { /// @@ -13,12 +11,12 @@ namespace Tgstation.Server.Host.Components.Session /// /// The time it took for to return or the initial bridge request to process. If the startup timed out. /// - public TimeSpan? StartupTime { get; set; } + public TimeSpan? StartupTime { get; init; } /// /// The if it exited. /// - public int? ExitCode { get; set; } + public int? ExitCode { get; init; } /// public override string ToString() => String.Format(CultureInfo.InvariantCulture, "Exit Code: {0}, Time {1}ms", ExitCode, StartupTime?.TotalMilliseconds);