claude code review changes

This commit is contained in:
2026-02-20 17:05:34 +05:30
parent 136957d75d
commit f1c5b9587b
9 changed files with 151 additions and 130 deletions

View File

@@ -33,7 +33,7 @@ func (s *RouteList) Get(index int) (string, error) {
defer s.mu.RUnlock()
if index < 0 || index >= len(s.routes) {
return "0", fmt.Errorf("index out of bounds")
return "", fmt.Errorf("index out of bounds")
}
return s.routes[index], nil
}
@@ -47,5 +47,7 @@ func (s *RouteList) All() []string {
s.mu.RLock()
defer s.mu.RUnlock()
return s.routes
out := make([]string, len(s.routes))
copy(out, s.routes)
return out
}