RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.
Go agent-harnessagent-native-databaseagentic-aiagentic-retrievalagentic-searchaiai-agentscontext-enginecontext-engineeringcontext-managementharness-engineeringknowledge-compilationragretrieval-augmented-generationretrieval-harnesssearch-harness
refactor(agent): remove dead switch map alias (#20175)
Sbaaoui Idriss4ba41b714e29
diff --git a/internal/agent/component/switch.go b/internal/agent/component/switch.goindex 9d32075ff8..0be3658525 100644--- a/internal/agent/component/switch.go+++ b/internal/agent/component/switch.go@@ -35,7 +35,6 @@ package componentimport ("context""fmt"- "maps""math""strconv""strings"@@ -549,13 +548,6 @@ func isEmptyValue(v any) bool {return false}-// mapsCopyDup is a no-op duplicate alias kept for symmetry with the-// begin.go / message.go helpers in the package; here Switch doesn't-// need to copy maps but the alias documents the convention.-var _ = mapsCopyDup--func mapsCopyDup(dst, src map[string]any) { maps.Copy(dst, src) }-func init() {Register(componentNameSwitch, NewSwitchComponent)}