Prevent wrong type conversion (#101349)

This commit is contained in:
Leonor Oliveira
2025-02-27 15:17:50 +01:00
committed by GitHub
parent 7fc1caaf98
commit 5e61ec1258
+1 -1
View File
@@ -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