Skip to content

Conversation

maliroteh-sf
Copy link
Contributor

What does this PR do?

If no value is provided for the flag --device-id then interactively prompts the user to select a mobile device.

What issues does this PR fix or reference?

@W-16911876@

@maliroteh-sf maliroteh-sf requested a review from a team as a code owner October 8, 2024 00:41
? await new AppleDeviceManager(logger).enumerateDevices()
: await new AndroidDeviceManager(logger).enumerateDevices();

if (!availableDevices || availableDevices.length === 0) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: Could this line be shortened to availableDevices?.length === 0?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably not. Coalesce operator returning null can by true to === 0.

Copy link
Contributor

@sfdctaka sfdctaka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@maliroteh-sf maliroteh-sf merged commit 6fa575c into main Oct 8, 2024
13 checks passed
@maliroteh-sf maliroteh-sf deleted the device-id branch October 8, 2024 22:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants