From a158ca04b1c28c9bfc9801c5a967ea90e478fc34 Mon Sep 17 00:00:00 2001 From: chait Date: Thu, 13 Feb 2025 11:52:15 +0800 Subject: [PATCH] [style] Code style adjustment; --- .../Repository/MongoRepository.Log.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Plugins/BotSharp.Plugin.MongoStorage/Repository/MongoRepository.Log.cs b/src/Plugins/BotSharp.Plugin.MongoStorage/Repository/MongoRepository.Log.cs index ca13fa3b..2316fdab 100644 --- a/src/Plugins/BotSharp.Plugin.MongoStorage/Repository/MongoRepository.Log.cs +++ b/src/Plugins/BotSharp.Plugin.MongoStorage/Repository/MongoRepository.Log.cs @@ -19,13 +19,13 @@ public partial class MongoRepository public List GetExecutionLogs(string conversationId) { - var logs = new List(); + List logs = []; if (string.IsNullOrEmpty(conversationId)) return logs; var filter = Builders.Filter.Eq(x => x.ConversationId, conversationId); var logCollection = _dc.ExectionLogs.Find(filter).FirstOrDefault(); - logs = logCollection?.Logs ?? new List(); + logs = logCollection?.Logs ?? []; return logs; } #endregion