Remove workaround cast

This commit is contained in:
Matt Bierner
2021-09-16 17:21:01 -07:00
parent eefcaf6e0f
commit c25cf4a01a

View File

@@ -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,