Re-enable missing_return (#20844)

This commit is contained in:
Ian Hickson
2018-08-28 11:22:57 -07:00
committed by GitHub
parent 458d0b3d21
commit 53b635817c
48 changed files with 88 additions and 59 deletions

View File

@@ -600,6 +600,7 @@ Future<Null> _verifyNoTestPackageImports(String workingDirectory) async {
}
return ' $name: uses \'package:test\' directly';
}
return null;
})
.where((String line) => line != null)
.toList()

View File

@@ -141,7 +141,7 @@ Future<Map<String, double>> _readJsonResults(Process process) {
jsonBuf.writeln(line.substring(line.indexOf(jsonPrefix) + jsonPrefix.length));
});
process.exitCode.then<int>((int code) async {
process.exitCode.then<void>((int code) async {
await Future.wait<void>(<Future<void>>[
stdoutSub.cancel(),
stderrSub.cancel(),

View File

@@ -58,6 +58,7 @@ Future<Null> main(List<String> rawArgs) async {
(String line) => line.startsWith('intl:'),
orElse: () {
exitWithError('intl dependency not found in ${dotPackagesFile.path}');
return null; // unreachable
},
)
.split(':')