diff --git a/src/Tgstation.Server.Host.Watchdog/Watchdog.cs b/src/Tgstation.Server.Host.Watchdog/Watchdog.cs index 706c418d94..9defdd8a5e 100644 --- a/src/Tgstation.Server.Host.Watchdog/Watchdog.cs +++ b/src/Tgstation.Server.Host.Watchdog/Watchdog.cs @@ -177,6 +177,10 @@ namespace Tgstation.Server.Host.Watchdog var watchdogVersion = executingAssembly.GetName().Version?.Semver().ToString(); + var serializerOptions = new JsonSerializerOptions + { + WriteIndented = true, + }; while (!cancellationToken.IsCancellationRequested) { if (!File.Exists(assemblyPath)) @@ -214,10 +218,7 @@ namespace Tgstation.Server.Host.Watchdog bootstrapperSettingsFile, JsonSerializer.Serialize( bootstrapSettings, - new JsonSerializerOptions - { - WriteIndented = true, - }), + serializerOptions), cancellationToken); } }