mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-07-28 16:02:01 +03:00
Apply suggestions from code review
Co-authored-by: Mark Kopenga <mkopenga@gmail.com>
This commit is contained in:
committed by
Jesse Duffield
parent
bccf203a18
commit
0a63f701e5
@ -155,11 +155,9 @@ func (pr *PullRequest) getPullRequestURL(from *models.Branch, to *models.Branch)
|
||||
}
|
||||
|
||||
repoInfo := getRepoInfoFromURL(repoURL)
|
||||
var toBranchName string
|
||||
if to == nil {
|
||||
toBranchName = ""
|
||||
} else {
|
||||
toBranchName = to.Name
|
||||
toBranchName := ""
|
||||
if to != nil {
|
||||
toBranchName = to.Name
|
||||
}
|
||||
pullRequestURL := gitService.PullRequestURL(repoInfo.Owner, repoInfo.Repository, from.Name, toBranchName)
|
||||
|
||||
|
Reference in New Issue
Block a user