From dd1fb83aa1299f14c3dc324abaf891adfbbc0cb6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucas=20K=C3=A4ldstr=C3=B6m?= Date: Tue, 18 Aug 2020 17:31:29 +0300 Subject: [PATCH] Fix examples --- github/example_organization_test.go | 2 +- github/example_repository_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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