Index: sdk/lib/_internal/pub/lib/src/entrypoint.dart |
diff --git a/sdk/lib/_internal/pub/lib/src/entrypoint.dart b/sdk/lib/_internal/pub/lib/src/entrypoint.dart |
index f394ecd77e84cf530eae810c88752893ac1fcc8c..32c42afcc0f2eb50401d3e542b980c3f3c1fbbff 100644 |
--- a/sdk/lib/_internal/pub/lib/src/entrypoint.dart |
+++ b/sdk/lib/_internal/pub/lib/src/entrypoint.dart |
@@ -222,9 +222,8 @@ class Entrypoint { |
// TODO(nweiz): When barback does a better job of associating errors with |
// assets (issue 19491), catch and handle compilation errors on a |
// per-package basis. |
- for (var package in dependenciesToPrecompile) { |
- deleteEntry(path.join(depsDir, package)); |
- } |
+ dependenciesToPrecompile.forEach((package) => |
+ deleteEntry(path.join(depsDir, package))); |
throw error; |
}); |
} |