1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-03 17:17:19 +00:00

Merge branch 'lunny/merge_getuserfork' of github.com:lunny/gitea into lunny/merge_getuserfork

This commit is contained in:
Lunny Xiao
2024-12-12 12:00:54 -08:00

View File

@ -28,7 +28,7 @@ func GetForkedRepo(ctx context.Context, ownerID, repoID int64) (*Repository, err
Get(repo) Get(repo)
if err != nil { if err != nil {
return nil, err return nil, err
} else if has { } else if !has {
return nil, ErrRepoNotExist{ID: repoID} return nil, ErrRepoNotExist{ID: repoID}
} }
return repo, nil return repo, nil