Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(680)

Unified Diff: utils/pub/io.dart

Issue 12261050: Fix pub on windows. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/pub/io.dart
diff --git a/utils/pub/io.dart b/utils/pub/io.dart
index 85a094cedab2953ab3cf2b0f9da8bf22fe1d5e21..82614ca68af23db08cc7fa8d07b6d62a2d14e5b0 100644
--- a/utils/pub/io.dart
+++ b/utils/pub/io.dart
@@ -81,8 +81,8 @@ String writeBinaryFile(String file, List<int> contents) {
Future<String> createFileFromStream(Stream<List<int>> stream, String file) {
log.io("Creating $file from stream.");
- var stream = new File(file).openOutputStream();
- return stream.pipe(wrapOutputStream(stream)).then((_) {
+ var outputStream = new File(file).openOutputStream();
+ return stream.pipe(wrapOutputStream(outputStream)).then((_) {
log.fine("Created $file from stream.");
return file;
});
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698