Skip to content

Commit bb7c446

Browse files
committed
Fix bug
1 parent 1585b4d commit bb7c446

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routers/api/v1/repo/pull.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1133,7 +1133,7 @@ func parseCompareInfo(ctx *context.APIContext, form api.CreatePullRequestOption)
11331133
headRepo, err := repo_model.GetForkedRepo(ctx, headUser.ID, baseRepo.ID)
11341134
if err != nil && !repo_model.IsErrRepoNotExist(err) {
11351135
ctx.Error(http.StatusInternalServerError, "GetForkedRepo", err)
1136-
return nil, nil, nil, "", ""
1136+
return nil, nil
11371137
}
11381138
if headRepo == nil && !isSameRepo {
11391139
err = baseRepo.GetBaseRepo(ctx)

0 commit comments

Comments
 (0)