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) --- models/pull.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'models') 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. -- cgit v1.2.3