diff --git a/internal/server/clustersummary_status.go b/internal/server/clustersummary_status.go index 7ba0562..b653734 100644 --- a/internal/server/clustersummary_status.go +++ b/internal/server/clustersummary_status.go @@ -15,7 +15,7 @@ func getMapInRange[K comparable, V any](m map[K]V, limit, skip int) (map[K]V, er return nil, errors.New("limit cannot be negative") } if skip >= len(m) { - return nil, errors.New("skip cannot be greater than or equal to the length of the map") + return nil, nil } // Extract keys and sort them