mirror of
https://github.com/go-gitea/gitea.git
synced 2025-04-15 13:47:42 +00:00
fix merge
This commit is contained in:
parent
c7af586385
commit
d35d45d2ea
@ -114,12 +114,9 @@ func getPackageDescriptor(ctx context.Context, pv *PackageVersion, c *cache) (*P
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
repository, err := c.QueryRepository(ctx, p.RepoID)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
var repository *repo_model.Repository
|
||||
if p.RepoID > 0 {
|
||||
repository, err = repo_model.GetRepositoryByID(ctx, p.RepoID)
|
||||
repository, err = c.QueryRepository(ctx, p.RepoID)
|
||||
if err != nil && !repo_model.IsErrRepoNotExist(err) {
|
||||
return nil, err
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user