1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-15 23:17:19 +00:00

Use fmt.Sprintf correctly (#17886)

This commit is contained in:
delvh
2021-12-02 20:36:50 +01:00
committed by GitHub
parent fbf3208229
commit 4646c7c52d
4 changed files with 4 additions and 4 deletions

View File

@@ -79,7 +79,7 @@ func ToAPIPullRequest(pr *models.PullRequest, doer *user_model.User) *api.PullRe
},
Head: &api.PRBranchInfo{
Name: pr.HeadBranch,
Ref: fmt.Sprintf(git.PullPrefix+"%d/head", pr.Index),
Ref: fmt.Sprintf("%s%d/head", git.PullPrefix, pr.Index),
RepoID: -1,
},
}