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:
Ian Hickson
2017-01-23 01:04:31 -08:00
committed by GitHub
parent 99822088a7
commit 63aa1397a3
63 changed files with 134 additions and 127 deletions

View File

@@ -37,7 +37,7 @@ Future<Map<String, dynamic>> runTask(String taskName, { bool silent: false }) as
bool runnerFinished = false;
runner.exitCode.then((_) {
runner.exitCode.whenComplete(() {
runnerFinished = true;
});

View File

@@ -166,7 +166,7 @@ Future<Process> startProcess(String executable, List<String> arguments,
ProcessInfo procInfo = new ProcessInfo(command, proc);
_runningProcesses.add(procInfo);
proc.exitCode.then((_) {
proc.exitCode.whenComplete(() {
_runningProcesses.remove(procInfo);
});