mirror of
https://github.com/go-gitea/gitea.git
synced 2024-09-01 14:56:30 +00:00
Resolved linter warnings
This commit is contained in:
parent
45af07f0e7
commit
8d855782ea
@ -1112,7 +1112,6 @@ func parseCompareInfo(ctx *context.APIContext, form api.CreatePullRequestOption)
|
||||
if headRepo == nil && !isSameRepo {
|
||||
// Check if the base repository is a fork of the head repository.
|
||||
headRepo, err = repo_model.GetRepositoryByID(ctx, baseRepo.ForkID)
|
||||
|
||||
if err != nil {
|
||||
ctx.Error(http.StatusInternalServerError, "GetRepositoryByID", err)
|
||||
return nil, nil, nil, "", ""
|
||||
|
Loading…
Reference in New Issue
Block a user