diff --git a/routers/api/v1/repo/pull.go b/routers/api/v1/repo/pull.go index cc70fd2a23..8ba6c096ec 100644 --- a/routers/api/v1/repo/pull.go +++ b/routers/api/v1/repo/pull.go @@ -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, "", ""