Skip to content

Commit dd1fb83

Browse files
committed
Fix examples
1 parent e26f94c commit dd1fb83

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

github/example_organization_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ func checkErr(err error) {
2020
func ExampleOrganizationsClient_Get() {
2121
// Create a new client
2222
ctx := context.Background()
23-
c, err := github.NewClient(ctx)
23+
c, err := github.NewClient()
2424
checkErr(err)
2525

2626
// Get public information about the fluxcd organization

github/example_repository_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
func ExampleOrgRepositoriesClient_Get() {
1313
// Create a new client
1414
ctx := context.Background()
15-
c, err := github.NewClient(ctx)
15+
c, err := github.NewClient()
1616
checkErr(err)
1717

1818
// Parse the URL into an OrgRepositoryRef

0 commit comments

Comments
 (0)