Skip to content

Commit

Permalink
add bug 2
Browse files Browse the repository at this point in the history
  • Loading branch information
serprex committed Feb 10, 2024
1 parent e7556ab commit 1b4e5e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flow/connectors/utils/array.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ func ArrayChunks[T any](slice []T, size int) [][]T {
partitions = append(partitions, slice[:size])
slice = slice[size:]
if len(slice) == 0 {
return partitions
return append(partitions, slice)
}
}
// append remaing elements
// append remaining elements
return append(partitions, slice)
}

Expand Down

0 comments on commit 1b4e5e2

Please sign in to comment.