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