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

Unified Diff: tracing/tracing/ui/analysis/user_expectation_related_samples_table.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
Index: tracing/tracing/ui/analysis/user_expectation_related_samples_table.html
diff --git a/tracing/tracing/ui/analysis/user_expectation_related_samples_table.html b/tracing/tracing/ui/analysis/user_expectation_related_samples_table.html
index b9cc593b5a4be99b40db1a44a7bf24475b0dda13..0e5e9cb3da23f82f63ef75707ff1bb6c5ea4eec3 100644
--- a/tracing/tracing/ui/analysis/user_expectation_related_samples_table.html
+++ b/tracing/tracing/ui/analysis/user_expectation_related_samples_table.html
@@ -34,8 +34,9 @@ Polymer({
value: function(row) {
var typeEl = document.createElement('span');
typeEl.innerText = row.type;
- if (row.tooltip)
+ if (row.tooltip) {
typeEl.title = row.tooltip;
+ }
return typeEl;
},
width: '150px'
@@ -45,10 +46,11 @@ Polymer({
width: '100%',
value: function(row) {
var linkEl = document.createElement('tr-ui-a-analysis-link');
- if (row.name)
+ if (row.name) {
linkEl.setSelectionAndContent(row.selection, row.name);
- else
+ } else {
linkEl.selection = row.selection;
+ }
return linkEl;
}
}
@@ -78,10 +80,11 @@ Polymer({
updateContents_: function() {
var table = this.$.table;
- if (this.samples_ && this.samples_.length > 0)
+ if (this.samples_ && this.samples_.length > 0) {
table.tableRows = this.samples_.slice();
- else
+ } else {
table.tableRows = [];
+ }
table.rebuild();
}
});

Powered by Google App Engine
This is Rietveld 408576698