Index: utils/pub/path_source.dart |
diff --git a/utils/pub/path_source.dart b/utils/pub/path_source.dart |
index e849b6f793bd2064dd9e1cdd8afa47fb95d00260..e4d1f02ad724afb417ca36897d775cd5bb631c74 100644 |
--- a/utils/pub/path_source.dart |
+++ b/utils/pub/path_source.dart |
@@ -25,7 +25,7 @@ class PathSource extends Source { |
final shouldCache = false; |
Future<Pubspec> describe(PackageId id) { |
- return new Future.of(() { |
+ return new Future.sync(() { |
_validatePath(id.name, id.description); |
return new Pubspec.load(id.name, id.description["path"], |
systemCache.sources); |
@@ -40,7 +40,7 @@ class PathSource extends Source { |
} |
Future<bool> install(PackageId id, String destination) { |
- return new Future.of(() { |
+ return new Future.sync(() { |
try { |
_validatePath(id.name, id.description); |
} on FormatException catch(err) { |