diff --git a/internal/auth/users.go b/internal/auth/users.go index bc41c3a3e4f1..07b3c3f8de7f 100644 --- a/internal/auth/users.go +++ b/internal/auth/users.go @@ -23,10 +23,8 @@ type User struct { } func newUser(username, email, name string) User { - avatar := "" - if email != "" { - avatar = fmt.Sprintf("https://gravatar.com/avatar/%s?d=https%%3A%%2F%%2Fui-avatars.com%%2Fapi%%2F/%s/128", hashEmail(email), name) - } + avatar := fmt.Sprintf("https://gravatar.com/avatar/%s?d=https%%3A%%2F%%2Fui-avatars.com%%2Fapi%%2F/%s/128", hashEmail(email), name) + return User{ Username: username, Email: email,