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

Unified Diff: third_party/closure_compiler/compile2.py

Issue 2179033002: Strip comments and whitespace from javascript resources (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: One minor fix 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
Index: third_party/closure_compiler/compile2.py
diff --git a/third_party/closure_compiler/compile2.py b/third_party/closure_compiler/compile2.py
index df844d129109dc082700ee9e89fe45d6dc534117..036a52f3625c07b3b44d70e61d10eca90a8912ee 100755
--- a/third_party/closure_compiler/compile2.py
+++ b/third_party/closure_compiler/compile2.py
@@ -224,7 +224,7 @@ class Checker(object):
self._log_debug("Dependencies: %s" % deps)
self._log_debug("Target: %s" % self._target)
- js_args = deps + [self._target] if self._target else []
+ js_args = deps + ([self._target] if self._target else [])
if not custom_sources:
# TODO(dbeam): compiler.jar automatically detects "@externs" in a --js arg
@@ -270,7 +270,7 @@ class Checker(object):
errors = stderr.strip().split("\n\n")
maybe_summary = errors.pop()
- if re.search(".*error.*warning.*typed", maybe_summary):
+ if re.search(".*error.*warning", maybe_summary):
self._log_debug("Summary: %s" % maybe_summary)
else:
# Not a summary. Running the jar failed. Bail.

Powered by Google App Engine
This is Rietveld 408576698