Agent Executor (AX) is Google's open agentic orchestration runtime
Go
Use idiomatic naming for exists
JBD8fd03cb7a5ec
diff --git a/internal/controller/registry.go b/internal/controller/registry.goindex 595881a..e31d828 100644--- a/internal/controller/registry.go+++ b/internal/controller/registry.go@@ -65,7 +65,7 @@ func (r *Registry) RegisterLocal(a agent.Agent, name, description string, metadadefer r.mu.Unlock()id := a.ID()- if _, exists := r.agents[id]; exists {+ if _, ok := r.agents[id]; ok {return fmt.Errorf("agent %s already registered", id)}