fix AvatarInfo json.Unmarshal error

This commit is contained in:
aichy126 2022-11-02 11:46:26 +08:00
parent e0106e6a63
commit 27e3e2ec8c
1 changed files with 0 additions and 2 deletions

View File

@ -10,7 +10,6 @@ import (
"github.com/answerdev/answer/pkg/checker"
"github.com/jinzhu/copier"
"github.com/segmentfault/pacman/errors"
"github.com/segmentfault/pacman/log"
)
// UserVerifyEmailReq user verify email request
@ -108,7 +107,6 @@ func FormatAvatarInfo(avatarJson string) string {
AvatarInfo := &AvatarInfo{}
err := json.Unmarshal([]byte(avatarJson), AvatarInfo)
if err != nil {
log.Error("AvatarInfo json.Unmarshal Error", err)
return ""
}
switch AvatarInfo.Type {