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

Unified Diff: catapult_build/js_checks.py

Issue 3008163002: Revert of "Add tab.IsServiceWorkerReadyOrNotRegist() which tells whether serviceworker ..." (Closed)
Patch Set: Created 3 years, 3 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 | « no previous file | telemetry/telemetry/internal/browser/tab_unittest.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: catapult_build/js_checks.py
diff --git a/catapult_build/js_checks.py b/catapult_build/js_checks.py
index f182b813cb3ed37f8d3e341197b99eff6260ba78..78cc745ebd8c0a9d391d4f7b6b80392c3d74fce2 100644
--- a/catapult_build/js_checks.py
+++ b/catapult_build/js_checks.py
@@ -98,7 +98,7 @@
stripped_contents = strip_js_comments.StripJSComments(contents).strip()
matches = re.match('^(.*?);', stripped_contents, re.DOTALL)
if not matches:
- return contents
+ return ''
return matches.group(1).strip()
« no previous file with comments | « no previous file | telemetry/telemetry/internal/browser/tab_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698