1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-06-17 00:18:05 +02:00

Fix translations, make formatter happy

This commit is contained in:
Denis Palashevskii
2021-06-09 16:09:19 +04:00
committed by Jesse Duffield
parent 6e579dc6e4
commit 63cb304a82
3 changed files with 5 additions and 5 deletions

View File

@ -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)