Fix a couple new analysis errors (#1800)
diff --git a/lib/src/io.dart b/lib/src/io.dart
index c633547..5435e1f 100644
--- a/lib/src/io.dart
+++ b/lib/src/io.dart
@@ -197,7 +197,7 @@
// TODO(nweiz): remove extra logging when we figure out the windows bot issue.
log.io("Creating $file from stream.");
- return _descriptorPool.withResource<Future<String>>(() async {
+ return _descriptorPool.withResource(() async {
_deleteIfLink(file);
await stream.pipe(new File(file).openWrite());
log.fine("Created $file from stream.");
@@ -694,7 +694,7 @@
/// the inherited variables.
Future<PubProcessResult> runProcess(String executable, List<String> args,
{workingDir, Map<String, String> environment, bool runInShell: false}) {
- return _descriptorPool.withResource<Future<PubProcessResult>>(() async {
+ return _descriptorPool.withResource(() async {
var result = await _doProcess(Process.run, executable, args,
workingDir: workingDir,
environment: environment,