Skip to content
Snippets Groups Projects
Commit 9070eb6c authored by rnystrom@google.com's avatar rnystrom@google.com Committed by Natalie Weizenbaum
Browse files

Fix a couple of warnings.

R=nweiz@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge@23098 260f80e4-7a28-3924-810f-c04153c831b5
parent 3bf1fcb2
No related branches found
No related tags found
No related merge requests found
...@@ -104,8 +104,6 @@ void serve([List<d.Descriptor> contents]) { ...@@ -104,8 +104,6 @@ void serve([List<d.Descriptor> contents]) {
var response = request.response; var response = request.response;
try { try {
var path = request.uri.path.replaceFirst("/", ""); var path = request.uri.path.replaceFirst("/", "");
if (_requestedPaths == null) _requestedPaths = <String>[];
_requestedPaths.add(path); _requestedPaths.add(path);
response.persistentConnection = false; response.persistentConnection = false;
......
...@@ -825,7 +825,7 @@ _testResolve(void testFn(String description, Function body), ...@@ -825,7 +825,7 @@ _testResolve(void testFn(String description, Function body),
// remote server. // remote server.
root = package; root = package;
} else { } else {
cache.sources[source].addPackage(name, package); (cache.sources[source] as MockSource).addPackage(name, package);
} }
}); });
}); });
......
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