Skip to content

Commit 989b291

Browse files
authored
fix(README): getInstallationOctokit() doesn't need destructuring (#2257)
getInstallationOctokit doesn't need destructuring
1 parent ee62343 commit 989b291

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ For example, to implement the above using `App`
351351
```js
352352
const app = new App({ appId, privateKey });
353353
const { data: slug } = await app.octokit.rest.apps.getAuthenticated();
354-
const { octokit } = await app.getInstallationOctokit(123);
354+
const octokit = await app.getInstallationOctokit(123);
355355
await octokit.rest.issues.create({
356356
owner: "octocat",
357357
repo: "hello-world",

0 commit comments

Comments
 (0)