Skip to content

Commit

Permalink
fix(README): getInstallationOctokit() doesn't need destructuring (#…
Browse files Browse the repository at this point in the history
…2257)

getInstallationOctokit doesn't need destructuring
  • Loading branch information
gimenete committed Jul 17, 2022
1 parent ee62343 commit 989b291
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -351,7 +351,7 @@ For example, to implement the above using `App`
```js
const app = new App({ appId, privateKey });
const { data: slug } = await app.octokit.rest.apps.getAuthenticated();
const { octokit } = await app.getInstallationOctokit(123);
const octokit = await app.getInstallationOctokit(123);
await octokit.rest.issues.create({
owner: "octocat",
repo: "hello-world",
Expand Down

0 comments on commit 989b291

Please sign in to comment.