From b48babe56e9800a53ecce888482cb758f6815bd5 Mon Sep 17 00:00:00 2001 From: Natalie Weizenbaum Date: Wed, 7 Feb 2018 15:29:05 -0800 Subject: [PATCH] Fix a couple new analysis errors (#1800) --- lib/src/io.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/src/io.dart b/lib/src/io.dart index c633547d6..5435e1f0d 100644 --- a/lib/src/io.dart +++ b/lib/src/io.dart @@ -197,7 +197,7 @@ Future createFileFromStream(Stream> stream, String file) { // TODO(nweiz): remove extra logging when we figure out the windows bot issue. log.io("Creating $file from stream."); - return _descriptorPool.withResource>(() async { + return _descriptorPool.withResource(() async { _deleteIfLink(file); await stream.pipe(new File(file).openWrite()); log.fine("Created $file from stream."); @@ -694,7 +694,7 @@ Future store(Stream stream, EventSink sink, /// the inherited variables. Future runProcess(String executable, List args, {workingDir, Map environment, bool runInShell: false}) { - return _descriptorPool.withResource>(() async { + return _descriptorPool.withResource(() async { var result = await _doProcess(Process.run, executable, args, workingDir: workingDir, environment: environment,