From 1662d8a2558c43d577cd26f7b39f403c5c4c26d6 Mon Sep 17 00:00:00 2001 From: Alberto Gimeno Date: Sun, 17 Jul 2022 17:26:29 +0200 Subject: [PATCH] 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",