Resolved linter warnings

This commit is contained in:
Job 2024-08-18 14:58:30 +00:00
parent 45af07f0e7
commit 8d855782ea

View File

@ -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, "", ""