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

Unified Diff: lib/src/command/cache_repair.dart

Issue 2184303002: Make pub strong-mode clean. (Closed) Base URL: git@github.com:dart-lang/pub.git@master
Patch Set: Code review changes Created 4 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
« no previous file with comments | « lib/src/command/build.dart ('k') | lib/src/command/deps.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/command/cache_repair.dart
diff --git a/lib/src/command/cache_repair.dart b/lib/src/command/cache_repair.dart
index 6c238fa149dfa4fd5ce7b6d92e6c7b8339d79d0d..902f4458e4872b5fea650a17dfb0c05c15461676 100644
--- a/lib/src/command/cache_repair.dart
+++ b/lib/src/command/cache_repair.dart
@@ -25,11 +25,11 @@ class CacheRepairCommand extends PubCommand {
// Repair every cached source.
for (var source in cache.sources.all.map(cache.source)) {
- if (source is! CachedSource) continue;
-
- var results = await source.repairCachedPackages();
- successes.addAll(results.first);
- failures.addAll(results.last);
+ if (source is CachedSource) {
+ var results = await source.repairCachedPackages();
+ successes.addAll(results.first);
+ failures.addAll(results.last);
+ }
}
if (successes.length > 0) {
« no previous file with comments | « lib/src/command/build.dart ('k') | lib/src/command/deps.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698