mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-25 19:56:09 +01:00
fix: remove redundant check due to always false (#17206)
Signed-off-by: Shengwen Yu <yshengwen@vmware.com>
This commit is contained in:
parent
09371b48e8
commit
acc2872fa8
@ -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())
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user