feat: fix linter

This commit is contained in:
Yang Luo 2024-03-26 23:24:53 +08:00
parent 94743246a1
commit d1f31dd327
2 changed files with 2 additions and 2 deletions

View File

@ -125,7 +125,7 @@ func (c *ApiController) SendEmail() {
return
}
var userString = "Hi"
userString := "Hi"
if user != nil {
userString = user.GetFriendlyName()
}

View File

@ -93,7 +93,7 @@ func SendVerificationCodeToEmail(organization *Organization, user *User, provide
// "You have requested a verification code at Casdoor. Here is your code: %s, please enter in 5 minutes."
content := strings.Replace(provider.Content, "%s", code, 1)
var userString = "Hi"
userString := "Hi"
if user != nil {
userString = user.GetFriendlyName()
}