Re-enable missing_return (#20844)
This commit is contained in:
@@ -600,6 +600,7 @@ Future<Null> _verifyNoTestPackageImports(String workingDirectory) async {
|
||||
}
|
||||
return ' $name: uses \'package:test\' directly';
|
||||
}
|
||||
return null;
|
||||
})
|
||||
.where((String line) => line != null)
|
||||
.toList()
|
||||
|
||||
@@ -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(),
|
||||
|
||||
@@ -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(':')
|
||||
|
||||
Reference in New Issue
Block a user