Commit 7a338886 authored by Danny Tuppeny's avatar Danny Tuppeny Committed by Danny Tuppeny

Tidy up

parent 5793a3c3
......@@ -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';
......
......@@ -98,8 +98,6 @@ String getAvdPath() {
}
}
print(searchPaths);
return searchPaths.where((String p) => p != null).firstWhere(
(String p) => fs.directory(p).existsSync(),
orElse: () => null,
......
......@@ -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,
);
}
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