Refactor "no ios devices attached" logic. (#27717)
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user