Skip to content

Commit d54cad0

Browse files
zeripathKN4CK3R
andauthored
as per @KN4CKER
Co-authored-by: KN4CK3R <[email protected]>
1 parent 38a2183 commit d54cad0

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

models/repo_collaboration.go

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -90,13 +90,10 @@ func (repo *Repository) getCollaborators(e Engine, listOptions ListOptions) ([]*
9090
if err != nil {
9191
if IsErrUserNotExist(err) {
9292
log.Warn("Inconsistent DB: User: %d is listed as collaborator of %-v but does not exist", c.UserID, repo)
93-
collaborators = append(collaborators, &Collaborator{
94-
User: NewGhostUser(),
95-
Collaboration: c,
96-
})
97-
continue
93+
user = NewGhostUser()
94+
} else {
95+
return nil, err
9896
}
99-
return nil, err
10097
}
10198
collaborators = append(collaborators, &Collaborator{
10299
User: user,

0 commit comments

Comments
 (0)