Skip to content

Commit 0c237f6

Browse files
authored
fix: correctly exec launchEmulator when no port param is passed (#1802)
1 parent 3da5f75 commit 0c237f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/cli-platform-android/src/commands/runAndroid/tryLaunchEmulator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const launchEmulator = async (
2424

2525
const cp = execa(
2626
emulatorCommand,
27-
[`@${emulatorName}`, port ? '-port' : '', port ? `${port}` : ''],
27+
port ? [`@${emulatorName}`, '-port', `${port}`] : [`@${emulatorName}`],
2828
{
2929
detached: true,
3030
stdio: 'ignore',

0 commit comments

Comments
 (0)