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

Unified Diff: lib/src/runner/browser/content_shell.dart

Issue 2068363002: pkg/test: Resolve a number of analyzer warnings (Closed) Base URL: https://github.com/dart-lang/test.git@master
Patch Set: more nits Created 4 years, 6 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 | « .analysis_options ('k') | lib/src/runner/loader.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/runner/browser/content_shell.dart
diff --git a/lib/src/runner/browser/content_shell.dart b/lib/src/runner/browser/content_shell.dart
index 35908dcf8532779d596f5741a3d4d6920227f8fe..c3002404b523018bbb59a86027f573efe68f78bb 100644
--- a/lib/src/runner/browser/content_shell.dart
+++ b/lib/src/runner/browser/content_shell.dart
@@ -105,7 +105,7 @@ class ContentShell extends Browser {
var client = new HttpClient();
var request = await client.getUrl(base.resolve("/json/list"));
var response = await request.close();
- var json = await JSON.fuse(UTF8).decoder.bind(response).single;
+ var json = await JSON.fuse(UTF8).decoder.bind(response).single as List;
return base.resolve(json.first["devtoolsFrontendUrl"]);
} catch (_) {
// If we fail to talk to the remote debugger protocol, give up and return
« no previous file with comments | « .analysis_options ('k') | lib/src/runner/loader.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698