remove unnecessary abstraction

This commit is contained in:
dhax 2017-10-12 16:51:46 +02:00
parent eb928912af
commit 81aa0b651e
2 changed files with 4 additions and 5 deletions

View file

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