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

Unified Diff: lib/src/source/path.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/hosted.dart ('k') | lib/src/source/unknown.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/source/path.dart
diff --git a/lib/src/source/path.dart b/lib/src/source/path.dart
index 8786968a81df58f3662b0724855cad6ce15f9694..000033bf4659fa89f9a4087714520d63426e02a2 100644
--- a/lib/src/source/path.dart
+++ b/lib/src/source/path.dart
@@ -57,8 +57,7 @@ class PathSource extends Source {
});
}
- Future<String> getDirectory(PackageId id) =>
- newFuture(() => _validatePath(id.name, id.description));
+ String getDirectory(PackageId id) => _validatePath(id.name, id.description);
/// Parses a path dependency.
///
« no previous file with comments | « lib/src/source/hosted.dart ('k') | lib/src/source/unknown.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698