Skip to content

Commit 506c09a

Browse files
Update code block in README (#408)
1 parent f40ba9b commit 506c09a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,11 @@ func getOrganizationClient(cc githubapp.ClientCreator, org string) (*github.Clie
267267

268268
// look up the installation ID for a particular organization
269269
installations := githubapp.NewInstallationsService(appClient)
270-
install := installations.GetByOwner(context.Background(), org)
270+
271+
install, err := installations.GetByOwner(context.Background(), org)
272+
if err != nil {
273+
return nil, err
274+
}
271275

272276
// create a client to perform actions on that specific organization
273277
return cc.NewInstallationClient(install.ID)

0 commit comments

Comments
 (0)