Unverified Commit bf20fa7c authored by KyleWong's avatar KyleWong Committed by GitHub

Refactor "no ios devices attached" logic. (#27717)

parent 23d38901
......@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment