This commit is contained in:
Danny Tuppeny
2018-04-18 16:17:09 +01:00
committed by Danny Tuppeny
parent 5793a3c372
commit 7a33888693
3 changed files with 3 additions and 7 deletions

View File

@@ -9,7 +9,6 @@ import 'package:meta/meta.dart';
import '../android/android_sdk.dart';
import '../android/android_workflow.dart';
import '../base/file_system.dart';
import '../base/logger.dart';
import '../base/process.dart';
import '../emulator.dart';
import '../globals.dart';

View File

@@ -98,8 +98,6 @@ String getAvdPath() {
}
}
print(searchPaths);
return searchPaths.where((String p) => p != null).firstWhere(
(String p) => fs.directory(p).existsSync(),
orElse: () => null,

View File

@@ -5,7 +5,6 @@
import 'dart:async';
import '../base/file_system.dart';
import '../base/logger.dart';
import '../base/platform.dart';
import '../base/process.dart';
import '../emulator.dart';
@@ -68,7 +67,7 @@ String getSimulatorPath() {
'/Applications/Xcode.app/Contents/Developer/Applications/Simulator.app',
];
return searchPaths.where((String p) => p != null).firstWhere(
(String p) => fs.directory(p).existsSync(),
orElse: () => null,
);
(String p) => fs.directory(p).existsSync(),
orElse: () => null,
);
}