From 989b2914c24ab0f8088e8d56875f35e862b6d298 Mon Sep 17 00:00:00 2001 From: Alberto Gimeno Date: Sun, 17 Jul 2022 22:56:43 +0200 Subject: [PATCH] fix(README): `getInstallationOctokit()` doesn't need destructuring (#2257) getInstallationOctokit doesn't need destructuring --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 04c51f4162..b69ace5d55 100644 --- a/README.md +++ b/README.md @@ -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",