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

Unified Diff: lib/src/command.dart

Issue 2044253003: Refactor Source and SourceRegistry. (Closed) Base URL: git@github.com:dart-lang/pub.git@master
Patch Set: Rename LiveSource to BoundSource. Created 4 years, 6 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/barback/asset_environment.dart ('k') | lib/src/command/cache_add.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/command.dart
diff --git a/lib/src/command.dart b/lib/src/command.dart
index 9308078a7c4ff14fdea44d9aa85bffe345c7ec1b..f201b4ed7930e9acd0526a4d16547f1935404a27 100644
--- a/lib/src/command.dart
+++ b/lib/src/command.dart
@@ -17,9 +17,7 @@ import 'system_cache.dart';
/// has subcommands, then one of those must always be chosen.
abstract class PubCommand extends Command {
SystemCache get cache {
- if (_cache == null) {
- _cache = new SystemCache.withSources(isOffline: isOffline);
- }
+ if (_cache == null) _cache = new SystemCache(isOffline: isOffline);
return _cache;
}
SystemCache _cache;
« no previous file with comments | « lib/src/barback/asset_environment.dart ('k') | lib/src/command/cache_add.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698