summaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
authordelvh <leon@kske.dev>2021-12-02 20:36:50 +0100
committerGitHub <noreply@github.com>2021-12-02 20:36:50 +0100
commit4646c7c52d453dcc817f8e14b991de0e4f67b492 (patch)
tree426e0f4e544c0ad87c32fbad6775e9fc6a10e2aa /models
parentfbf3208229effba63cfe2276d7d7d120f143a8b2 (diff)
downloadgitea-4646c7c52d453dcc817f8e14b991de0e4f67b492.tar.gz
gitea-4646c7c52d453dcc817f8e14b991de0e4f67b492.zip
Use fmt.Sprintf correctly (#17886)
Diffstat (limited to 'models')
-rw-r--r--models/pull.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/pull.go b/models/pull.go
index e112aea66a..aa58322bce 100644
--- a/models/pull.go
+++ b/models/pull.go
@@ -350,7 +350,7 @@ func (pr *PullRequest) GetDefaultSquashMessage() string {
// GetGitRefName returns git ref for hidden pull request branch
func (pr *PullRequest) GetGitRefName() string {
- return fmt.Sprintf(git.PullPrefix+"%d/head", pr.Index)
+ return fmt.Sprintf("%s%d/head", git.PullPrefix, pr.Index)
}
// IsChecking returns true if this pull request is still checking conflict.