Skip to content

Commit 8924ef0

Browse files
authored
Fix typos in org client example in README (#38)
1 parent 60ba5b3 commit 8924ef0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,15 +242,15 @@ client_ to look up specific installations of the application and then construct
242242
an _installation client_ to make API calls:
243243

244244
```go
245-
func getOrganizationClient(cc githubapp.ClientCreator, org name) (*github.Client, error) {
245+
func getOrganizationClient(cc githubapp.ClientCreator, org string) (*github.Client, error) {
246246
// create a client to perform actions as the application
247247
appClient, err := cc.NewAppClient()
248248
if err != nil {
249249
return nil, err
250250
}
251251

252252
// look up the installation ID for a particular organization
253-
installations := githubapp.NewInstallationsService(app)
253+
installations := githubapp.NewInstallationsService(appClient)
254254
install := installations.GetByOwner(context.Background(), org)
255255

256256
// create a client to perform actions on that specific organization

0 commit comments

Comments
 (0)