diff options
author | delvh <leon@kske.dev> | 2021-12-02 20:36:50 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-02 20:36:50 +0100 |
commit | 4646c7c52d453dcc817f8e14b991de0e4f67b492 (patch) | |
tree | 426e0f4e544c0ad87c32fbad6775e9fc6a10e2aa /modules/convert/pull.go | |
parent | fbf3208229effba63cfe2276d7d7d120f143a8b2 (diff) | |
download | gitea-4646c7c52d453dcc817f8e14b991de0e4f67b492.tar.gz gitea-4646c7c52d453dcc817f8e14b991de0e4f67b492.zip |
Use fmt.Sprintf correctly (#17886)
Diffstat (limited to 'modules/convert/pull.go')
-rw-r--r-- | modules/convert/pull.go | 2 |
1 files changed, 1 insertions, 1 deletions
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, }, } |