fix: remove redundant check due to always false (#17206)

Signed-off-by: Shengwen Yu <yshengwen@vmware.com>
This commit is contained in:
Shengwen YU 2022-07-20 16:53:56 +08:00 committed by GitHub
parent 09371b48e8
commit acc2872fa8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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())
}