Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:recycle: kernel/util/path: remove unnecessary second val from loop (#17279)

iliyab77e17406665
diff --git a/kernel/util/path.go b/kernel/util/path.go
index 11bbd9b58b..a2c5502dc1 100644
--- a/kernel/util/path.go
+++ b/kernel/util/path.go
@@ -75,7 +75,7 @@ func GetServerAddrs() (ret []string) {
ret = append(ret, LocalHost)
ret = gulu.Str.RemoveDuplicatedElem(ret)
- for i, _ := range ret {
+ for i := range ret {
ret[i] = "http://" + ret[i] + ":" + ServerPort
}
return