Skip to content
This repository was archived by the owner on Feb 4, 2021. It is now read-only.

Commit c2b61ac

Browse files
committed
Fix
1 parent b4e7bdb commit c2b61ac

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

infra/store/user/user_store.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,8 @@ func (s *userStoreImpl) UpdateFullName(userID model.UserID, fullName string) (u
130130
return nil, errors.WithStack(err)
131131
}
132132
defer func() {
133-
if err = util.ErrorFromRecover(recover()); err != nil {
133+
if e := util.ErrorFromRecover(recover()); e != nil {
134+
err = e
134135
_ = tx.Rollback()
135136
}
136137
}()

0 commit comments

Comments
 (0)