remove unnecessary abstraction

This commit is contained in:
dhax 2017-10-11 12:38:35 +02:00
parent f4046cb178
commit b9871ab336
2 changed files with 2 additions and 4 deletions

View file

@ -142,8 +142,7 @@ func (rs *AccountResource) update(w http.ResponseWriter, r *http.Request) {
return
}
acc = data.Account
if err := rs.Store.Update(acc); err != nil {
if err := rs.Store.Update(data.Account); err != nil {
switch err.(type) {
case validation.Errors:
render.Render(w, r, ErrValidation(ErrAccountValidation, err))