Skip to content

Commit

Permalink
Revert "cancelled git.checkout"
Browse files Browse the repository at this point in the history
This reverts commit a488569.
  • Loading branch information
joaomoreno committed Sep 27, 2018
1 parent 77c8657 commit 58fe02e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions extensions/git/src/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1373,7 +1373,7 @@ export class CommandCenter {
const choice = await window.showQuickPick(picks, { placeHolder });

if (!choice) {
throw new Error('Cancelled');
return;
}

await choice.run(repository);
Expand Down Expand Up @@ -1948,10 +1948,6 @@ export class CommandCenter {
this.telemetryReporter.sendTelemetryEvent('git.command', { command: id });

return result.catch(async err => {
if (err.message === 'Cancelled') {
return;
}

const options: MessageOptions = {
modal: true
};
Expand Down

0 comments on commit 58fe02e

Please sign in to comment.