Skip to content

Commit

Permalink
fix: remove redundant check due to always false (#17206)
Browse files Browse the repository at this point in the history
Signed-off-by: Shengwen Yu <[email protected]>
  • Loading branch information
Shengwen YU authored Jul 20, 2022
1 parent 09371b4 commit acc2872
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/common/api/base.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,6 @@ func (b *BaseAPI) SetPaginationHeader(total, page, pageSize int64) {
q := u.Query()
q.Set("page", strconv.FormatInt(page-1, 10))
u.RawQuery = q.Encode()
if len(link) != 0 {
link += ", "
}
link += fmt.Sprintf("<%s>; rel=\"prev\"", u.String())
}

Expand Down

0 comments on commit acc2872

Please sign in to comment.