mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-20 16:49:06 +01:00
Remove workaround cast
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user