1
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-11-04 08:17:24 -05:00

Ok - no need for u

This commit is contained in:
Manush Dodunekov 2020-01-12 18:24:31 +01:00
parent 095bfa6139
commit 5c3e886aab

View File

@ -752,11 +752,10 @@ func (org *User) accessibleReposEnv(e Engine, userID int64) (AccessibleReposEnvi
var user *User
if userID > 0 {
u, err := getUserByID(e, userID)
user, err := getUserByID(e, userID)
if err != nil {
return nil, err
}
user = u
}
teamIDs, err := org.getUserTeamIDs(e, userID)