Don't treat no active PR as an error

This commit is contained in:
Corey Johnson 2019-10-16 16:26:05 -07:00
parent 19d02404cd
commit 5a10f2350f

View file

@ -91,7 +91,8 @@ func prView(cmd *cobra.Command, args []string) error {
return err
} else if prPayload.CurrentPR == nil {
branch := currentBranch()
return fmt.Errorf("The [%s] branch has no open PRs", branch)
fmt.Printf("The [%s] branch has no open PRs", branch)
return nil
}
openURL = prPayload.CurrentPR.URL
}