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

Update models/repo/fork.go

Co-authored-by: Zettat123 <zettat123@gmail.com>
This commit is contained in:
Lunny Xiao
2024-12-12 14:48:00 +08:00
committed by GitHub
parent 82ca99db2d
commit 8a71bd9f6a

View File

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