From 71bf2d2e0f22e7cab33896ef5c7009d4eb49b6a0 Mon Sep 17 00:00:00 2001 From: Jordan Dominion Date: Fri, 7 Feb 2025 19:19:54 -0500 Subject: [PATCH] Fix an IDE message --- src/Tgstation.Server.Host.Watchdog/Watchdog.cs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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); } }