Skip to content

Commit

Permalink
Swap cursor condition order
Browse files Browse the repository at this point in the history
Signed-off-by: Eamonn Mansour <[email protected]>
  • Loading branch information
eamansour committed Aug 22, 2024
1 parent 18310fc commit e93dad9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/runs/runsGet.go
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ func GetRunsFromRestApi(
results = append(results, runsOnThisPage...)

// Have we processed the last page ?
if pageCursor == runData.GetNextCursor() || !runData.HasNextCursor() {
if !runData.HasNextCursor() || pageCursor == runData.GetNextCursor() {
gotAllResults = true
} else {
pageCursor = runData.GetNextCursor()
Expand Down

0 comments on commit e93dad9

Please sign in to comment.