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:
Ben 2021-05-19 13:13:23 -07:00
parent 697ff425a8
commit 14a40fb0db

View file

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