Skip to content

Commit

Permalink
Fix a couple new analysis errors (#1800)
Browse files Browse the repository at this point in the history
  • Loading branch information
nex3 authored Feb 7, 2018
1 parent 5314f23 commit b48babe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/src/io.dart
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ Future<String> createFileFromStream(Stream<List<int>> 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<Future<String>>(() async {
return _descriptorPool.withResource(() async {
_deleteIfLink(file);
await stream.pipe(new File(file).openWrite());
log.fine("Created $file from stream.");
Expand Down Expand Up @@ -694,7 +694,7 @@ Future store(Stream stream, EventSink sink,
/// 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,
Expand Down

0 comments on commit b48babe

Please sign in to comment.