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

Unified Diff: catapult_build/js_checks.py

Issue 3012573002: Add tab.IsServiceWorkerReadyOrNotRegist() which tells whether serviceworker registration is finished (Closed)
Patch Set: fix presubmit error 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
Index: catapult_build/js_checks.py
diff --git a/catapult_build/js_checks.py b/catapult_build/js_checks.py
index 78cc745ebd8c0a9d391d4f7b6b80392c3d74fce2..f182b813cb3ed37f8d3e341197b99eff6260ba78 100644
--- a/catapult_build/js_checks.py
+++ b/catapult_build/js_checks.py
@@ -98,7 +98,7 @@ def _FirstStatement(contents):
stripped_contents = strip_js_comments.StripJSComments(contents).strip()
matches = re.match('^(.*?);', stripped_contents, re.DOTALL)
if not matches:
- return ''
+ return contents
return matches.group(1).strip()

Powered by Google App Engine
This is Rietveld 408576698