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:
committed by
Jesse Duffield
parent
6e579dc6e4
commit
63cb304a82
@ -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)
|
||||
|
||||
|
Reference in New Issue
Block a user