bs.unusedBuilds && len(bs.builds)-bs.offset+1 > 0
to bs.unusedBuilds && len(bs.builds)-bs.offset >= 0
733}
734
735func (bs *PaginatedBuilds) HasNext() bool {
736 return bs.unusedBuilds && len(bs.builds)-bs.offset+1 > 0737}
738
739func (bs *PaginatedBuilds) migrateLimit(ctx context.Context) (bool, error) {
Some boolean expressions can be simplified to be more concise and readable.
var x, y int
if x > y - 1 {}
x < y || x == y
var x, y int
if x >= y {}
x <= y