1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-03-27 22:01:46 +02:00

Apply suggestions from code review

Co-authored-by: Mark Kopenga <mkopenga@gmail.com>
This commit is contained in:
Denis Palashevskii 2021-06-08 11:01:19 +04:00 committed by Jesse Duffield
parent bccf203a18
commit 0a63f701e5
2 changed files with 5 additions and 7 deletions

View File

@ -155,10 +155,8 @@ func (pr *PullRequest) getPullRequestURL(from *models.Branch, to *models.Branch)
} }
repoInfo := getRepoInfoFromURL(repoURL) repoInfo := getRepoInfoFromURL(repoURL)
var toBranchName string toBranchName := ""
if to == nil { if to != nil {
toBranchName = ""
} else {
toBranchName = to.Name toBranchName = to.Name
} }
pullRequestURL := gitService.PullRequestURL(repoInfo.Owner, repoInfo.Repository, from.Name, toBranchName) pullRequestURL := gitService.PullRequestURL(repoInfo.Owner, repoInfo.Repository, from.Name, toBranchName)

View File

@ -396,7 +396,7 @@ func dutchTranslationSet() TranslationSet {
LcInitSubmodule: "initialiseer submodule", LcInitSubmodule: "initialiseer submodule",
LcViewBulkSubmoduleOptions: "bekijk bulk submodule opties", LcViewBulkSubmoduleOptions: "bekijk bulk submodule opties",
LcViewStashFiles: "bekijk bestanden van stash entry", LcViewStashFiles: "bekijk bestanden van stash entry",
CreatePullRequestOptions: "Maak opties voor pull-aanvragen", CreatePullRequestOptions: "Creëer pull request opties",
LcCreatePullRequestOptions: "maak opties voor pull-aanvragen", LcCreatePullRequestOptions: "creëer pull request opties",
} }
} }