From acc2872fa832cd565d76356cfe95b87add9af872 Mon Sep 17 00:00:00 2001 From: Shengwen YU Date: Wed, 20 Jul 2022 16:53:56 +0800 Subject: [PATCH] fix: remove redundant check due to always false (#17206) Signed-off-by: Shengwen Yu --- src/common/api/base.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/common/api/base.go b/src/common/api/base.go index fb6d80ebb..a0d3db706 100644 --- a/src/common/api/base.go +++ b/src/common/api/base.go @@ -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()) }