We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 09e02c1 + 8a71bd9 commit 1585b4dCopy full SHA for 1585b4d
models/repo/fork.go
@@ -28,7 +28,7 @@ func GetForkedRepo(ctx context.Context, ownerID, repoID int64) (*Repository, err
28
Get(repo)
29
if err != nil {
30
return nil, err
31
- } else if has {
+ } else if !has {
32
return nil, ErrRepoNotExist{ID: repoID}
33
}
34
return repo, nil
0 commit comments