mirror of
https://github.com/flutter/flutter
synced 2024-10-13 19:52:53 +00:00
Refactor "no ios devices attached" logic. (#27717)
This commit is contained in:
parent
23d38901ef
commit
bf20fa7c9d
|
@ -114,7 +114,7 @@ class IMobileDevice {
|
|||
|
||||
// If no device is attached, we're unable to detect any problems. Assume all is well.
|
||||
final ProcessResult result = (await runAsync(<String>['idevice_id', '-l'])).processResult;
|
||||
if (result.exitCode != 0 || result.stdout.isEmpty)
|
||||
if (result.exitCode == 0 && result.stdout.isEmpty)
|
||||
return true;
|
||||
|
||||
// Check that we can look up the names of any attached devices.
|
||||
|
|
Loading…
Reference in a new issue