chore(resolvemcp): drop unused helpers, silence rangeValCopy

This commit is contained in:
Hein
2026-10-01 13:40:21 +02:00
parent e49c3a916e
commit 155e04deea
2 changed files with 2 additions and 22 deletions
+2 -2
View File
@@ -1013,8 +1013,8 @@ func (h *Handler) validatePreloads(model interface{}, preloads []common.PreloadO
for _, name := range buildModelInfo("", "", model).relationNames {
relations[strings.ToLower(name)] = true
}
for _, p := range preloads {
segments := strings.Split(p.Relation, ".")
for i := range preloads {
segments := strings.Split(preloads[i].Relation, ".")
if len(segments) > h.config.MaxPreloadDepth {
return NewClientError(CodeLimitExceeded, fmt.Sprintf("preload depth exceeds the maximum of %d", h.config.MaxPreloadDepth))
}