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:
@@ -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;
|
||||
});
|
||||
|
||||
|
||||
@@ -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);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user