Skip to content

Commit

Permalink
Fix unloaded owner (#1770)
Browse files Browse the repository at this point in the history
  • Loading branch information
ethantkoenig authored and lunny committed May 21, 2017
1 parent cf02cd7 commit b0308d8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions models/repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -353,8 +353,9 @@ func (repo *Repository) getUnitsByUserID(e Engine, userID int64, isAdmin bool) (
return nil
}

err = repo.getUnits(e)
if err != nil {
if err = repo.getUnits(e); err != nil {
return err
} else if err = repo.getOwner(e); err != nil {
return err
}

Expand Down

0 comments on commit b0308d8

Please sign in to comment.