mirror of
https://github.com/goharbor/harbor
synced 2024-09-21 03:02:07 +00: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 := u.Query()
|
||||||
q.Set("page", strconv.FormatInt(page-1, 10))
|
q.Set("page", strconv.FormatInt(page-1, 10))
|
||||||
u.RawQuery = q.Encode()
|
u.RawQuery = q.Encode()
|
||||||
if len(link) != 0 {
|
|
||||||
link += ", "
|
|
||||||
}
|
|
||||||
link += fmt.Sprintf("<%s>; rel=\"prev\"", u.String())
|
link += fmt.Sprintf("<%s>; rel=\"prev\"", u.String())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user