Increase the strictness of our requiring explicit types (#7585)
...now that we have generic methods, their types need to be specified too.
This commit is contained in:
@@ -110,7 +110,7 @@ Future<int> runCommandAndStreamOutput(List<String> cmd, {
|
||||
|
||||
// Wait for stdout to be fully processed
|
||||
// because process.exitCode may complete first causing flaky tests.
|
||||
await subscription.asFuture();
|
||||
await subscription.asFuture<Null>();
|
||||
subscription.cancel();
|
||||
|
||||
return await process.exitCode;
|
||||
|
||||
@@ -410,13 +410,14 @@ class RecordingProcessManager implements ProcessManager {
|
||||
await files.forEach((FileSystemEntity entity) {
|
||||
File file = entity;
|
||||
Future<dynamic> readAsBytes = file.readAsBytes();
|
||||
addAllFilesToArchive.add(readAsBytes.then((List<int> data) {
|
||||
addAllFilesToArchive.add(readAsBytes.then<Null>((List<int> data) {
|
||||
archive.addFile(new ArchiveFile.noCompress(
|
||||
path.basename(file.path), data.length, data));
|
||||
path.basename(file.path), data.length, data)
|
||||
);
|
||||
}));
|
||||
});
|
||||
|
||||
await Future.wait(addAllFilesToArchive);
|
||||
await Future.wait<dynamic>(addAllFilesToArchive);
|
||||
return new ZipEncoder().encode(archive);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user