Ok - no need for u

pull/6274/head
Manush Dodunekov 5 years ago
parent 095bfa6139
commit 5c3e886aab
  1. 3
      models/org.go

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

Loading…
Cancel
Save