Skip to content

Commit 7e4a31f

Browse files
mouismailBagToad
andauthored
handle this error to demonstrate the new intended usage of this function
Co-authored-by: Kynan Ware <[email protected]>
1 parent 3ded353 commit 7e4a31f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

examples_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ import (
1313
// self-hosted GitHub instances as well.
1414
func ExampleFlow_DetectFlow() {
1515
host, err := oauth.NewGitHubHost("https://github.com")
16+
if err != nil {
17+
panic(err)
18+
}
1619
flow := &oauth.Flow{
1720
Host: host,
1821
ClientID: os.Getenv("OAUTH_CLIENT_ID"),

0 commit comments

Comments
 (0)