remove unnecessary abstraction
This commit is contained in:
parent
f4046cb178
commit
b9871ab336
2 changed files with 2 additions and 4 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue