Prevent wrong type conversion (#101349)

pull/101419/head
Leonor Oliveira 3 months ago committed by GitHub
parent 7fc1caaf98
commit 5e61ec1258
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      pkg/registry/apis/folders/legacy_storage.go

@ -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

Loading…
Cancel
Save