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

Commit fa38ba9

Browse files
committed
Fix
1 parent d7b5355 commit fa38ba9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

infra/store/user/user_store.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,20 +84,20 @@ func (s *userStoreImpl) UpdateFullName(userID model.UserID, fullName string) (u
8484
}()
8585
u, err = record.FindUser(s.ctx, tx, int64(userID))
8686
if err != nil {
87-
tx.Rollback()
87+
_ = tx.Rollback()
8888
return nil, errors.WithStack(err)
8989
}
9090

9191
u.FullName = fullName
9292
_, err = u.Update(s.ctx, tx, boil.Whitelist(record.UserColumns.FullName, record.UserColumns.UpdatedAt))
9393
if err != nil {
94-
tx.Rollback()
94+
_ = tx.Rollback()
9595
return nil, errors.WithStack(err)
9696
}
9797

9898
err = tx.Commit()
9999
if err != nil {
100-
tx.Rollback()
100+
_ = tx.Rollback()
101101
return nil, errors.WithStack(err)
102102
}
103103

0 commit comments

Comments
 (0)