Trivial nit fixes (#12285)

This commit is contained in:
Ian Hickson
2017-09-27 16:13:48 -07:00
committed by GitHub
parent 4389f07024
commit efb45ea788
44 changed files with 90 additions and 92 deletions

View File

@@ -23,7 +23,7 @@ DeviceOperatingSystem deviceOperatingSystem = DeviceOperatingSystem.android;
/// Discovers available devices and chooses one to work with.
abstract class DeviceDiscovery {
factory DeviceDiscovery() {
switch(deviceOperatingSystem) {
switch (deviceOperatingSystem) {
case DeviceOperatingSystem.android:
return new AndroidDeviceDiscovery();
case DeviceOperatingSystem.ios:

View File

@@ -101,7 +101,7 @@ Future<Null> saveScreenshots(List<String> fromPaths, List<String> largeNames, Li
for (int index = 0; index < uploads.length; index += 1)
uploads[index] = new Upload(fromPaths[index], largeNames[index], smallNames[index]);
while(uploads.any(Upload.isNotComplete)) {
while (uploads.any(Upload.isNotComplete)) {
final HttpClient client = new HttpClient();
uploads = uploads.where(Upload.isNotComplete).toList();
await Future.wait(uploads.map((Upload upload) => upload.run(client)));

View File

@@ -265,7 +265,7 @@ class CardCollectionState extends State<CardCollection> {
);
String backgroundMessage;
switch(_dismissDirection) {
switch (_dismissDirection) {
case DismissDirection.horizontal:
backgroundMessage = "Swipe in either direction";
break;