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

Unified Diff: tracing/tracing/ui/base/utils.html

Issue 2776653002: [ESLint] Fix violations when enabling curly rule in eslint. (Closed)
Patch Set: rebase Created 3 years, 9 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 | « tracing/tracing/ui/base/ui_test.html ('k') | tracing/tracing/ui/brushing_state.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/ui/base/utils.html
diff --git a/tracing/tracing/ui/base/utils.html b/tracing/tracing/ui/base/utils.html
index 13133c95d9675dc72b5388c344f2a4a9c747b6c0..4ab7076730e5d125df11ba4cc48c3febd23458ac 100644
--- a/tracing/tracing/ui/base/utils.html
+++ b/tracing/tracing/ui/base/utils.html
@@ -15,8 +15,9 @@ tr.exportTo('tr.ui.b', function() {
function instantiateTemplate(selector, doc) {
doc = doc || document;
var el = Polymer.dom(doc).querySelector(selector);
- if (!el)
+ if (!el) {
throw new Error('Element not found');
+ }
return doc.importNode(el.content, true);
// return el.createInstance();
}
« no previous file with comments | « tracing/tracing/ui/base/ui_test.html ('k') | tracing/tracing/ui/brushing_state.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698