added a return statement to avoid a segmentation fault on a null baseRepo, error handling will be improved more later
This commit is contained in:
parent
697ff425a8
commit
14a40fb0db
1 changed files with 1 additions and 0 deletions
|
|
@ -26,6 +26,7 @@ func openInBrowser(cmd *cobra.Command, f *cmdutil.Factory) {
|
|||
baseRepo, err := f.BaseRepo()
|
||||
if err != nil {
|
||||
fmt.Println("error")
|
||||
return
|
||||
}
|
||||
// ATTN: add into the empty string where you want to go within the repo
|
||||
repoUrl := ghrepo.GenerateRepoURL(baseRepo, "")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue