sourcegraph/lib/iterator
Keegan Carruthers-Smith 580f089ccd
iterator: return all items before returning error (#45704)
If the next function returns a non-empty slice and a non-nil error we
still iterate over the returned items before stopping the iteration.
Previously iteration stopped as soon as a non-nil error was returned.

Test Plan: go test
2022-12-15 20:21:48 +02:00
..
functions_test.go lib: generic iterator based on stripes iterator (#45017) 2022-12-05 11:55:11 +00:00
functions.go lib: generic iterator based on stripes iterator (#45017) 2022-12-05 11:55:11 +00:00
iterator_test.go iterator: return all items before returning error (#45704) 2022-12-15 20:21:48 +02:00
iterator.go iterator: return all items before returning error (#45704) 2022-12-15 20:21:48 +02:00