Skip to content
This repository has been archived by the owner on Jan 18, 2024. It is now read-only.

[expo-cli][upgrade] Cancel command on ctrl+c #3188

Merged
merged 1 commit into from
Feb 4, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 9 additions & 14 deletions packages/expo-cli/src/commands/upgrade.ts
Original file line number Diff line number Diff line change
Expand Up @@ -340,13 +340,11 @@ async function shouldUpgradeSimulatorAsync(): Promise<boolean> {
return false;
}

let answer = false;
try {
answer = await confirmAsync({
message: 'Would you like to upgrade the Expo app in the iOS simulator?',
initial: false,
});
} catch {}
const answer = await confirmAsync({
message: 'Would you like to upgrade the Expo app in the iOS simulator?',
initial: false,
});

log.newLine();
return answer;
}
Expand Down Expand Up @@ -378,13 +376,10 @@ async function shouldUpgradeEmulatorAsync(): Promise<boolean> {
return false;
}

let answer = false;
try {
answer = await confirmAsync({
message: 'Would you like to upgrade the Expo app in the Android emulator?',
initial: false,
});
} catch {}
const answer = await confirmAsync({
message: 'Would you like to upgrade the Expo app in the Android emulator?',
initial: false,
});

log.newLine();
return answer;
Expand Down