diff --git a/packages/expo-cli/src/commands/upgrade.ts b/packages/expo-cli/src/commands/upgrade.ts index 57779fb425..b4faafb46e 100644 --- a/packages/expo-cli/src/commands/upgrade.ts +++ b/packages/expo-cli/src/commands/upgrade.ts @@ -340,13 +340,11 @@ async function shouldUpgradeSimulatorAsync(): Promise { 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; } @@ -378,13 +376,10 @@ async function shouldUpgradeEmulatorAsync(): Promise { 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;