From c25cf4a01a8de3abd279e042cb052f1db759a46e Mon Sep 17 00:00:00 2001 From: Matt Bierner Date: Thu, 16 Sep 2021 17:21:01 -0700 Subject: [PATCH] Remove workaround cast --- extensions/github/src/pushErrorHandler.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/extensions/github/src/pushErrorHandler.ts b/extensions/github/src/pushErrorHandler.ts index c8d43c47198..b4609a67561 100644 --- a/extensions/github/src/pushErrorHandler.ts +++ b/extensions/github/src/pushErrorHandler.ts @@ -82,7 +82,7 @@ async function handlePushError(repository: Repository, remote: Remote, refspec: await repository.push('origin', localName, true); - return [octokit, ghRepository]; + return [octokit, ghRepository] as const; }); // yield @@ -103,8 +103,7 @@ async function handlePushError(repository: Repository, remote: Remote, refspec: title = commit.message.replace(/\n.*$/m, ''); } - // TODO: mjbvz: TS 4.5 workaround - const res = await (octokit as any).pulls.create({ + const res = await octokit.pulls.create({ owner, repo, title,