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

Unified Diff: packages/package_config/lib/src/packages_impl.dart

Issue 2989763002: Update charted to 0.4.8 and roll (Closed)
Patch Set: Removed Cutch from list of reviewers Created 3 years, 5 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
Index: packages/package_config/lib/src/packages_impl.dart
diff --git a/packages/package_config/lib/src/packages_impl.dart b/packages/package_config/lib/src/packages_impl.dart
index e85f755817d1f79302eabd858464980a537a276c..fa9115fc69a9162ab0286806c325780d418c080a 100644
--- a/packages/package_config/lib/src/packages_impl.dart
+++ b/packages/package_config/lib/src/packages_impl.dart
@@ -18,13 +18,13 @@ class NoPackages implements Packages {
Uri resolve(Uri packageUri, {Uri notFound(Uri packageUri)}) {
String packageName = checkValidPackageUri(packageUri);
if (notFound != null) return notFound(packageUri);
- throw new ArgumentError.value(packageUri, "packageUri",
- 'No package named "$packageName"');
+ throw new ArgumentError.value(
+ packageUri, "packageUri", 'No package named "$packageName"');
}
Iterable<String> get packages => new Iterable<String>.generate(0);
- Map<String, Uri> asMap() => const<String,Uri>{};
+ Map<String, Uri> asMap() => const <String, Uri>{};
}
/// Base class for [Packages] implementations.
@@ -38,8 +38,8 @@ abstract class PackagesBase implements Packages {
Uri packageBase = getBase(packageName);
if (packageBase == null) {
if (notFound != null) return notFound(packageUri);
- throw new ArgumentError.value(packageUri, "packageUri",
- 'No package named "$packageName"');
+ throw new ArgumentError.value(
+ packageUri, "packageUri", 'No package named "$packageName"');
}
String packagePath = packageUri.path.substring(packageName.length + 1);
return packageBase.resolve(packagePath);
« no previous file with comments | « packages/package_config/lib/packages_file.dart ('k') | packages/package_config/lib/src/packages_io_impl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698