Remove dead code, do struct alignment, simplify code

This commit is contained in:
Mateusz Gajewski
2016-10-25 18:45:30 +02:00
parent c4d64a418b
commit 8cc3416bbc
13 changed files with 34 additions and 99 deletions

View File

@ -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