fix: close `create fork` message will create fork (#148438)

pull/147311/head
susiwen8 2022-05-02 20:49:00 +08:00 committed by GitHub
parent ab13b068b5
commit 3854c3fa8e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ async function handlePushError(repository: Repository, remote: Remote, refspec:
const no = localize('no', "No");
const answer = await window.showInformationMessage(localize('fork', "You don't have permissions to push to '{0}/{1}' on GitHub. Would you like to create a fork and push to it instead?", owner, repo), yes, no);
if (answer === no) {
if (answer !== yes) {
return;
}