mirror of
https://github.com/caddyserver/caddy.git
synced 2025-06-25 10:51:28 +08:00
Remove dead code, do struct alignment, simplify code
This commit is contained in:
@ -118,11 +118,7 @@ func getUser(storage Storage, email string) (User, error) {
|
||||
|
||||
// load their private key
|
||||
user.key, err = loadPrivateKey(userData.Key)
|
||||
if err != nil {
|
||||
return user, err
|
||||
}
|
||||
|
||||
return user, nil
|
||||
return user, err
|
||||
}
|
||||
|
||||
// saveUser persists a user's key and account registration
|
||||
|
Reference in New Issue
Block a user