diff options
author | Denis Palashevskii <palash.denis@outlook.com> | 2021-06-09 16:09:19 +0400 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2021-07-27 21:30:08 +1000 |
commit | 63cb304a822a7f0166f3ac57daee96b7e86d89ad (patch) | |
tree | 931c8c7d3ead42f84a4966098e7da37d47ccb014 /pkg/commands | |
parent | 6e579dc6e4a87a2521b89dcf8df9f0d20422cd62 (diff) |
Fix translations, make formatter happy
Diffstat (limited to 'pkg/commands')
-rw-r--r-- | pkg/commands/pull_request.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/commands/pull_request.go b/pkg/commands/pull_request.go index 72eec9ff4..c06a27e2e 100644 --- a/pkg/commands/pull_request.go +++ b/pkg/commands/pull_request.go @@ -38,7 +38,7 @@ func NewService(typeName string, repositoryDomain string, siteDomain string) *Se Name: repositoryDomain, PullRequestURL: func(owner string, repository string, from string, to string) string { if to == "" { - return fmt.Sprintf("https://%s/%s/%s/compare/%s?expand=1",siteDomain, owner, repository, from) + return fmt.Sprintf("https://%s/%s/%s/compare/%s?expand=1", siteDomain, owner, repository, from) } else { return fmt.Sprintf("https://%s/%s/%s/compare/%s...%s?expand=1", siteDomain, owner, repository, to, from) } @@ -151,7 +151,7 @@ func (pr *PullRequest) getPullRequestURL(from *models.Branch, to *models.Branch) repoInfo := getRepoInfoFromURL(repoURL) toBranchName := "" if to != nil { - toBranchName = to.Name + toBranchName = to.Name } pullRequestURL := gitService.PullRequestURL(repoInfo.Owner, repoInfo.Repository, from.Name, toBranchName) |