Remove redundant initialization in AddMessageToEnd

This commit is contained in:
Thorsten Sommer 2025-05-24 18:33:28 +02:00
parent 4e9f7e524c
commit b99edf6dd4
Signed by untrusted user who does not match committer: tsommer
GPG Key ID: 371BBA77A02C0108

View File

@ -118,8 +118,6 @@ public partial class ChatTemplateDialog : MSGComponentBase
private void AddMessageToEnd() private void AddMessageToEnd()
{ {
this.ExampleConversation ??= new List<ContentBlock>();
var newEntry = new ContentBlock var newEntry = new ContentBlock
{ {
Role = ChatRole.USER, // Default to User Role = ChatRole.USER, // Default to User