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

Unified Diff: sdk/lib/_internal/pub/lib/src/hosted_source.dart

Issue 15184003: Add additional Schedule heartbeat calls. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 7 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 | « pkg/scheduled_test/lib/scheduled_process.dart ('k') | sdk/lib/_internal/pub/lib/src/http.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/pub/lib/src/hosted_source.dart
diff --git a/sdk/lib/_internal/pub/lib/src/hosted_source.dart b/sdk/lib/_internal/pub/lib/src/hosted_source.dart
index 194b6e0cd6ff435b13aee5d365e98c3e3953f452..17b18399cb209e16c3066aa69418202f37d0c0f0 100644
--- a/sdk/lib/_internal/pub/lib/src/hosted_source.dart
+++ b/sdk/lib/_internal/pub/lib/src/hosted_source.dart
@@ -36,13 +36,10 @@ class HostedSource extends Source {
log.io("Get versions from $url.");
return httpClient.read(url).then((body) {
- log.io("Versions JSON from $url: $body.");
var doc = json.parse(body);
- var versions = doc['versions']
+ return doc['versions']
.map((version) => new Version.parse(version))
.toList();
- log.io("Versions from $url: $versions.");
- return versions;
}).catchError((ex) {
var parsed = _parseDescription(description);
_throwFriendlyError(ex, parsed.first, parsed.last);
« no previous file with comments | « pkg/scheduled_test/lib/scheduled_process.dart ('k') | sdk/lib/_internal/pub/lib/src/http.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698