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

Unified Diff: tracing/tracing/value/ui/diagnostic_span.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/value/histogram_test.html ('k') | tracing/tracing/value/ui/histogram_set_table_test.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/value/ui/diagnostic_span.html
diff --git a/tracing/tracing/value/ui/diagnostic_span.html b/tracing/tracing/value/ui/diagnostic_span.html
index 6b51b76eb4e4b58dc8ff852c6cb17480e0b1662c..da386cfb3270061b9945f624faf751f369ef7718 100644
--- a/tracing/tracing/value/ui/diagnostic_span.html
+++ b/tracing/tracing/value/ui/diagnostic_span.html
@@ -39,8 +39,7 @@ tr.exportTo('tr.v.ui', function() {
let curProto = diagnostic.constructor.prototype;
while (curProto) {
typeInfo = tr.v.d.Diagnostic.findTypeInfo(curProto.constructor);
- if (typeInfo && typeInfo.metadata.elementName)
- break;
+ if (typeInfo && typeInfo.metadata.elementName) break;
typeInfo = undefined;
curProto = curProto.__proto__;
}
@@ -53,8 +52,9 @@ tr.exportTo('tr.v.ui', function() {
let tagName = typeInfo.metadata.elementName;
- if (tr.ui.b.isUnknownElementName(tagName))
+ if (tr.ui.b.isUnknownElementName(tagName)) {
throw new Error('Element not registered: ' + tagName);
+ }
return tagName;
}
« no previous file with comments | « tracing/tracing/value/histogram_test.html ('k') | tracing/tracing/value/ui/histogram_set_table_test.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698