This is an automated email from the ASF dual-hosted git repository.

kumfo pushed a commit to branch feat/1.4.0/badge
in repository https://gitbox.apache.org/repos/asf/incubator-answer.git


The following commit(s) were added to refs/heads/feat/1.4.0/badge by this push:
     new 5c04bcec feat(badge): fixed badge detail
5c04bcec is described below

commit 5c04bceca74847e7b0406d1a0a96b13b19d2f346
Author: kumfo <[email protected]>
AuthorDate: Mon Aug 12 16:01:20 2024 +0800

    feat(badge): fixed badge detail
---
 internal/service/badge/badge_award_service.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/internal/service/badge/badge_award_service.go 
b/internal/service/badge/badge_award_service.go
index 0ad299ba..96a9743f 100644
--- a/internal/service/badge/badge_award_service.go
+++ b/internal/service/badge/badge_award_service.go
@@ -106,7 +106,7 @@ func (b *BadgeAwardService) GetBadgeAwardList(
                return
        }
 
-       resp = make([]*schema.GetBadgeAwardWithPageResp, 0, len(badgeAwardList))
+       resp = make([]*schema.GetBadgeAwardWithPageResp, len(badgeAwardList))
 
        for i, badgeAward := range badgeAwardList {
                var (

Reply via email to