Skip to content

Commit

Permalink
Prevent wrong type conversion (grafana#101349)
Browse files Browse the repository at this point in the history
  • Loading branch information
leonorfmartins authored Feb 27, 2025
1 parent 7fc1caa commit 5e61ec1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/registry/apis/folders/legacy_storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ func (s *legacyStorage) List(ctx context.Context, options *internalversion.ListO
}
list.Items = append(list.Items, *r)
}
if len(list.Items) >= int(paging.limit) {
if int64(len(list.Items)) >= paging.limit {
list.Continue = paging.GetNextPageToken()
}
return list, nil
Expand Down

0 comments on commit 5e61ec1

Please sign in to comment.