fix: handle more errors in downloadImage()

This commit is contained in:
Yang Luo
2023-09-15 22:40:53 +08:00
parent ce7a2e924b
commit eacc3fae5a
2 changed files with 2 additions and 2 deletions

View File

@ -221,7 +221,7 @@ func GenerateCasToken(userId string, service string) (string, error) {
value = ""
}
if v != "" {
if value != "" {
authenticationSuccess.Attributes.UserAttributes.Attributes = append(authenticationSuccess.Attributes.UserAttributes.Attributes, &CasNamedAttribute{
Name: k,
Value: value,