Skip to content

Commit c25cf4a

Browse files
committed
Remove workaround cast
1 parent eefcaf6 commit c25cf4a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

extensions/github/src/pushErrorHandler.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ async function handlePushError(repository: Repository, remote: Remote, refspec:
8282

8383
await repository.push('origin', localName, true);
8484

85-
return [octokit, ghRepository];
85+
return [octokit, ghRepository] as const;
8686
});
8787

8888
// yield
@@ -103,8 +103,7 @@ async function handlePushError(repository: Repository, remote: Remote, refspec:
103103
title = commit.message.replace(/\n.*$/m, '');
104104
}
105105

106-
// TODO: mjbvz: TS 4.5 workaround
107-
const res = await (octokit as any).pulls.create({
106+
const res = await octokit.pulls.create({
108107
owner,
109108
repo,
110109
title,

0 commit comments

Comments
 (0)