prefer_is_empty and prefer_is_not_empty (#8474)
This commit is contained in:
committed by
Adam Barth
parent
2f002885cc
commit
69b6bb87d1
@@ -299,7 +299,7 @@ class IosDeviceDiscovery implements DeviceDiscovery {
|
||||
.map((String id) => new IosDevice(deviceId: id))
|
||||
.toList();
|
||||
|
||||
if (allDevices.length == 0)
|
||||
if (allDevices.isEmpty)
|
||||
throw 'No iOS devices detected';
|
||||
|
||||
// TODO(yjbanov): filter out and warn about those with low battery level
|
||||
|
||||
Reference in New Issue
Block a user