From 8a29bd4bd1b959be91faf7c91b57e1205fd73705 Mon Sep 17 00:00:00 2001 From: Jacob Schmidt Date: Mon, 23 Feb 2026 21:39:57 -0600 Subject: [PATCH] style: apply dotnet format (round 2) Co-Authored-By: Warp --- Journal.Core/Services/JournalDatabaseService.cs | 2 +- Journal.Core/Services/PythonSidecarAiService.cs | 2 +- Journal.Core/Services/VaultStorageService.cs | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Journal.Core/Services/JournalDatabaseService.cs b/Journal.Core/Services/JournalDatabaseService.cs index 8ea7cec..d4c3105 100644 --- a/Journal.Core/Services/JournalDatabaseService.cs +++ b/Journal.Core/Services/JournalDatabaseService.cs @@ -10,7 +10,7 @@ public sealed class JournalDatabaseService(IJournalConfigService config) : IJour public const int KeySize = 32; public const int Iterations = 600_000; private static readonly byte[] DatabaseKeySalt = Encoding.UTF8.GetBytes("a_fixed_salt_for_the_db_key_deriv"); - private static readonly object SqliteInitLock = new(); + private static readonly Lock SqliteInitLock = new(); private static bool _sqliteInitialized; private static readonly IReadOnlyList RequiredSchemaTables = ["entries", "sections", "fragments", "tags", "fragment_tags"]; diff --git a/Journal.Core/Services/PythonSidecarAiService.cs b/Journal.Core/Services/PythonSidecarAiService.cs index f101ab3..8bf4e1d 100644 --- a/Journal.Core/Services/PythonSidecarAiService.cs +++ b/Journal.Core/Services/PythonSidecarAiService.cs @@ -31,7 +31,7 @@ public sealed class PythonSidecarAiService : IAiService : "ok"; var healthy = !payload.TryGetProperty("healthy", out var healthyNode) || healthyNode.ValueKind is JsonValueKind.True || - (healthyNode.ValueKind is JsonValueKind.False ? false : true); + (healthyNode.ValueKind is not JsonValueKind.False); return new AiHealthDto(provider, Enabled: true, Healthy: healthy, Message: message); } diff --git a/Journal.Core/Services/VaultStorageService.cs b/Journal.Core/Services/VaultStorageService.cs index b9ff614..93fabb3 100644 --- a/Journal.Core/Services/VaultStorageService.cs +++ b/Journal.Core/Services/VaultStorageService.cs @@ -2,7 +2,6 @@ using System.IO.Compression; using System.Globalization; using System.Security.Cryptography; using System.Text; -using System.Threading; namespace Journal.Core.Services;