Skip to content

Commit

Permalink
fix: use perPage var over hardcoded variable
Browse files Browse the repository at this point in the history
  • Loading branch information
plyr4 committed Nov 1, 2023
1 parent 63d01b3 commit c0ac3df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/build/graph.go
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ func GetBuildGraph(c *gin.Context) {
steps = append(steps, stepsPart...)

// assume no more pages exist if under 100 results are returned
if stepsCount < 100 {
if int(stepsCount) < perPage {
page = 0
} else {
page++
Expand Down Expand Up @@ -211,7 +211,7 @@ func GetBuildGraph(c *gin.Context) {
services = append(services, servicesPart...)

// assume no more pages exist if under 100 results are returned
if servicesCount < 100 {
if int(servicesCount) < perPage {
page = 0
} else {
page++
Expand Down

0 comments on commit c0ac3df

Please sign in to comment.