mirror of
https://github.com/go-gitea/gitea
synced 2025-07-04 09:37:19 +00:00
Use fmt.Sprintf correctly (#17886)
This commit is contained in:
@ -45,7 +45,7 @@ func (p *PullRequest) IsForkPullRequest() bool {
|
||||
|
||||
// GetGitRefName returns pull request relative path to head
|
||||
func (p PullRequest) GetGitRefName() string {
|
||||
return fmt.Sprintf(git.PullPrefix+"%d/head", p.Number)
|
||||
return fmt.Sprintf("%s%d/head", git.PullPrefix, p.Number)
|
||||
}
|
||||
|
||||
// PullRequestBranch represents a pull request branch
|
||||
|
Reference in New Issue
Block a user