Use fmt.Sprintf correctly (#17886)

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

No files matched your search

+1 -1
View File
@@ -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.