Skip to content

Commit

Permalink
Merge pull request #15 from gianlucam76/resource-result-order
Browse files Browse the repository at this point in the history
Skip option: ClusterProfiles matching a Cluster
  • Loading branch information
gianlucam76 authored May 22, 2024
2 parents 8d9ab78 + 7a9fec7 commit b491bf2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/server/clustersummary_status.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b491bf2

Please sign in to comment.