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.
This commit is contained in:
Max 2025-12-28 20:28:50 +08:00
parent b61f0130e6
commit 5f67ab2eef

View file

@ -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
}