diff --git a/github/example_organization_test.go b/github/example_organization_test.go index dba10b70..cb0c43cb 100644 --- a/github/example_organization_test.go +++ b/github/example_organization_test.go @@ -20,7 +20,7 @@ func checkErr(err error) { func ExampleOrganizationsClient_Get() { // Create a new client ctx := context.Background() - c, err := github.NewClient(ctx) + c, err := github.NewClient() checkErr(err) // Get public information about the fluxcd organization diff --git a/github/example_repository_test.go b/github/example_repository_test.go index 254ffb0f..baa339c8 100644 --- a/github/example_repository_test.go +++ b/github/example_repository_test.go @@ -12,7 +12,7 @@ import ( func ExampleOrgRepositoriesClient_Get() { // Create a new client ctx := context.Background() - c, err := github.NewClient(ctx) + c, err := github.NewClient() checkErr(err) // Parse the URL into an OrgRepositoryRef