unnecessary statements (#12189)

This commit is contained in:
Alexandre Ardhuin
2017-09-21 08:33:56 +02:00
committed by GitHub
parent f9e8da6d32
commit cde6b669b3
3 changed files with 8 additions and 2 deletions

View File

@@ -263,7 +263,6 @@ Future<Null> _verifyNoBadImports(String workingDirectory) async {
final String libPath = path.join(workingDirectory, 'packages', 'flutter', 'lib');
final String srcPath = path.join(workingDirectory, 'packages', 'flutter', 'lib', 'src');
// Verify there's one libPath/*.dart for each srcPath/*/.
<String>[];
final List<String> packages = new Directory(libPath).listSync()
.where((FileSystemEntity entity) => entity is File && path.extension(entity.path) == '.dart')
.map<String>((FileSystemEntity entity) => path.basenameWithoutExtension(entity.path))