From 4646c7c52d453dcc817f8e14b991de0e4f67b492 Mon Sep 17 00:00:00 2001 From: delvh Date: Thu, 2 Dec 2021 20:36:50 +0100 Subject: Use fmt.Sprintf correctly (#17886) --- modules/convert/pull.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/convert/pull.go') diff --git a/modules/convert/pull.go b/modules/convert/pull.go index a5e7d9608a..2e2c1b85bc 100644 --- a/modules/convert/pull.go +++ b/modules/convert/pull.go @@ -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, }, } -- cgit v1.2.3