build: modernize with "go fix -rangeint": use range over int

This commit is contained in:
Nick Craig-Wood
2026-08-21 12:23:31 +01:00
parent 67728ce37d
commit a64c0a0fde
8 changed files with 22 additions and 22 deletions
+1 -1
View File
@@ -157,7 +157,7 @@ func parseArrowStream(body io.Reader) ([]*container.BlobItem, *string, error) {
rec := reader.RecordBatch()
rows := int(rec.NumRows())
for row := 0; row < rows; row++ {
for row := range rows {
item := &container.BlobItem{
Properties: &container.BlobProperties{},
}
+1 -1
View File
@@ -198,7 +198,7 @@ func TestHandleFlatListResponse_MultiRecordBatch(t *testing.T) {
// First batch: 2 rows
builder := arrowArray.NewRecordBuilder(alloc, schema)
for i := 0; i < 2; i++ {
for range 2 {
builder.Field(0).(*arrowArray.StringBuilder).Append("batch1_blob")
for j := 1; j < 11; j++ {
builder.Field(j).AppendNull()