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

Unified Diff: lib/src/source/unknown.dart

Issue 1276673006: Make Source.getDirectory synchronous. (Closed) Base URL: git@github.com:dart-lang/pub.git@master
Patch Set: Created 5 years, 4 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 | « lib/src/source/path.dart ('k') | lib/src/system_cache.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/source/unknown.dart
diff --git a/lib/src/source/unknown.dart b/lib/src/source/unknown.dart
index 714ff5ce33b14ec1c392cdd44270fd90356f6c7f..fd76829042dca456e87e3ced10e5fb3d9d725a77 100644
--- a/lib/src/source/unknown.dart
+++ b/lib/src/source/unknown.dart
@@ -35,7 +35,7 @@ class UnknownSource extends Source {
"Cannot get an unknown source '$name'.");
/// Returns the directory where this package can be found locally.
- Future<String> getDirectory(PackageId id) => throw new UnsupportedError(
+ String getDirectory(PackageId id) => throw new UnsupportedError(
"Cannot find a package from an unknown source '$name'.");
bool descriptionsEqual(description1, description2) =>
« no previous file with comments | « lib/src/source/path.dart ('k') | lib/src/system_cache.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698