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

Unified Diff: tracing/tracing/ui/analysis/single_power_sample_sub_view.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/single_power_sample_sub_view.html
diff --git a/tracing/tracing/ui/analysis/single_power_sample_sub_view.html b/tracing/tracing/ui/analysis/single_power_sample_sub_view.html
index 0658c14ea297d4d67cd03a86cf64feaee3447faa..5f0f562298aeef89f72ab9fe5789f3f8ce71e7c9 100644
--- a/tracing/tracing/ui/analysis/single_power_sample_sub_view.html
+++ b/tracing/tracing/ui/analysis/single_power_sample_sub_view.html
@@ -64,10 +64,11 @@ Polymer({
},
updateContents_: function() {
- if (this.sample === undefined)
+ if (this.sample === undefined) {
this.$.table.tableRows = [];
- else
+ } else {
this.$.table.tableRows = [this.sample];
+ }
this.$.table.rebuild();
}
});
@@ -103,8 +104,9 @@ Polymer({
},
updateContents_: function() {
- if (this.selection.length !== 1)
+ if (this.selection.length !== 1) {
throw new Error('Cannot pass multiple samples to sample table.');
+ }
this.$.samplesTable.sample = tr.b.getOnlyElement(this.selection);
}
});

Powered by Google App Engine
This is Rietveld 408576698