Skip to content
Snippets Groups Projects
Commit 14e9ad15 authored by nweiz@google.com's avatar nweiz@google.com Committed by Natalie Weizenbaum
Browse files

Fix analyzer warnings in pub.

R=rnystrom@google.com

Review URL: https://codereview.chromium.org//172863004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge@32837 260f80e4-7a28-3924-810f-c04153c831b5
parent 512707aa
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment