Skip to content

Commit b48babe

Browse files
authored
Fix a couple new analysis errors (#1800)
1 parent 5314f23 commit b48babe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/src/io.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ Future<String> createFileFromStream(Stream<List<int>> stream, String file) {
197197
// TODO(nweiz): remove extra logging when we figure out the windows bot issue.
198198
log.io("Creating $file from stream.");
199199

200-
return _descriptorPool.withResource<Future<String>>(() async {
200+
return _descriptorPool.withResource(() async {
201201
_deleteIfLink(file);
202202
await stream.pipe(new File(file).openWrite());
203203
log.fine("Created $file from stream.");
@@ -694,7 +694,7 @@ Future store(Stream stream, EventSink sink,
694694
/// the inherited variables.
695695
Future<PubProcessResult> runProcess(String executable, List<String> args,
696696
{workingDir, Map<String, String> environment, bool runInShell: false}) {
697-
return _descriptorPool.withResource<Future<PubProcessResult>>(() async {
697+
return _descriptorPool.withResource(() async {
698698
var result = await _doProcess(Process.run, executable, args,
699699
workingDir: workingDir,
700700
environment: environment,

0 commit comments

Comments
 (0)