diff options
author | 6543 <6543@obermui.de> | 2020-02-09 15:33:03 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-09 14:33:03 +0000 |
commit | e273817154e98b7b675e43e97cd17f48a603cf9e (patch) | |
tree | 9f350c301a87d3dd57b4bdad954cf1c44185cb1a /models/user.go | |
parent | 74a4a1e17f99d147db9329718a5ecc87984b0ecd (diff) | |
download | gitea-e273817154e98b7b675e43e97cd17f48a603cf9e.tar.gz gitea-e273817154e98b7b675e43e97cd17f48a603cf9e.zip |
[API] Fix inconsistent label color format (#10129)
* update and use labelColorPattern
* add TestCases
* fix lint
* # optional for templates
* fix typo
* some more
* fix lint of **master**
Diffstat (limited to 'models/user.go')
-rw-r--r-- | models/user.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/user.go b/models/user.go index a68db6cf40..220a9f9a9a 100644 --- a/models/user.go +++ b/models/user.go @@ -1044,7 +1044,7 @@ func ChangeUserName(u *User, newUserName string) (err error) { } else if isExist { return ErrUserAlreadyExist{newUserName} } - + sess := x.NewSession() defer sess.Close() if err = sess.Begin(); err != nil { |