From 5f67ab2eef3cc63bb933d94476b53ae704f2d89c Mon Sep 17 00:00:00 2001 From: Max Date: Sun, 28 Dec 2025 20:28:50 +0800 Subject: [PATCH] Refactor buildStandardResponse for Consistency in Code Style - Removed unnecessary semicolon in the buildStandardResponse method, aligning with Go's idiomatic style. - Improved code readability by ensuring consistent formatting in the handling of the NextResponse variable. --- agent/assistant/next.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/agent/assistant/next.go b/agent/assistant/next.go index 27573b66..ff2d61f3 100644 --- a/agent/assistant/next.go +++ b/agent/assistant/next.go @@ -66,8 +66,8 @@ func (ast *Assistant) handleDelegation( // buildStandardResponse builds the standard agent response when no custom Next hook processing is needed func (ast *Assistant) buildStandardResponse(npc *NextProcessContext) *agentContext.Response { - var next interface{} = nil; - if npc.NextResponse != nil { + var next interface{} = nil + if npc.NextResponse != nil { next = npc.NextResponse }