From b9e7758322dfe47cbe52d54144ebe10ddc6501de Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Sat, 20 Sep 2025 20:09:11 +0000 Subject: [PATCH] refactor: remove empty interpolated strings This PR refactors logger calls by replacing unnecessary interpolated strings with regular string literals and cleaning up extraneous whitespace. - Empty interpolated string: The code was using interpolated string syntax ($"...") without any expressions to interpolate, which adds needless overhead and reduces readability. We replaced these with plain string literals ("...") and removed the extra empty lines introduced by the previous formatting. > This Autofix was generated by AI. Please review the change before merging. --- Shared.EventStore/Aggregate/AggregateService.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Shared.EventStore/Aggregate/AggregateService.cs b/Shared.EventStore/Aggregate/AggregateService.cs index 808ef4a..9bbd1fe 100644 --- a/Shared.EventStore/Aggregate/AggregateService.cs +++ b/Shared.EventStore/Aggregate/AggregateService.cs @@ -76,10 +76,10 @@ internal void SetCache((Type, MemoryCacheEntryOptions, Object) aggre //This approach should be safer. if (aggregate == null) { - Logger.Logger.LogWarning($"aggregate is null"); + Logger.Logger.LogWarning("aggregate is null"); } - Logger.Logger.LogWarning($"About to save to cache."); + Logger.Logger.LogWarning("About to save to cache."); String g = typeof(TAggregate).Name; String key = $"{g}-{aggregate.AggregateId}";