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

Unified Diff: sdk/lib/_internal/pub/lib/src/barback/build_environment.dart

Issue 172863004: Fix analyzer warnings in pub. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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: sdk/lib/_internal/pub/lib/src/barback/build_environment.dart
diff --git a/sdk/lib/_internal/pub/lib/src/barback/build_environment.dart b/sdk/lib/_internal/pub/lib/src/barback/build_environment.dart
index 2870349dbe90d3c77519faef7b559f9395f26d71..5077cd217388d6bb8fe8262c658a64ac340ec5c3 100644
--- a/sdk/lib/_internal/pub/lib/src/barback/build_environment.dart
+++ b/sdk/lib/_internal/pub/lib/src/barback/build_environment.dart
@@ -94,21 +94,21 @@ class BuildEnvironment {
graph.entrypoint.root.name, rootDirectory);
}
- rootDirectories = rootDirectories.toList();
+ var rootDirectoryList = rootDirectories.toList();
// For consistency, "web/" should always have the first available port and
// "test/" should always have the second. Other directories are assigned
// the following ports in alphabetical order.
var serverFutures = [];
- if (rootDirectories.remove('web')) {
+ if (rootDirectoryList.remove('web')) {
serverFutures.add(_bind(basePort, 'web'));
}
- if (rootDirectories.remove('test')) {
+ if (rootDirectoryList.remove('test')) {
serverFutures.add(_bind(basePort + 1, 'test'));
}
var i = 0;
- for (var dir in rootDirectories) {
+ for (var dir in rootDirectoryList) {
serverFutures.add(_bind(basePort + 2 + i, dir));
i += 1;
}
« 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