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

Unified Diff: tracing/tracing/ui/side_panel/metrics_side_panel.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/scripting_control.html ('k') | tracing/tracing/ui/side_panel/side_panel_container.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/ui/side_panel/metrics_side_panel.html
diff --git a/tracing/tracing/ui/side_panel/metrics_side_panel.html b/tracing/tracing/ui/side_panel/metrics_side_panel.html
index b9351e5376159b2400ad2a0a6c760a5530b36eee..9396ac54e20ae06195a069c53a49c7985e743585 100644
--- a/tracing/tracing/ui/side_panel/metrics_side_panel.html
+++ b/tracing/tracing/ui/side_panel/metrics_side_panel.html
@@ -55,8 +55,8 @@ tr.exportTo('tr.ui', function() {
this.metrics_ = [];
tr.metrics.MetricRegistry.getAllRegisteredTypeInfos().forEach(
function(m) {
- if (m.constructor.name === 'sampleMetric')
- return;
+ if (m.constructor.name === 'sampleMetric') return;
+
this.metrics_.push({
label: m.constructor.name,
value: m.constructor.name
@@ -181,8 +181,9 @@ tr.exportTo('tr.ui', function() {
if (this.currentMetricTypeInfo_ &&
this.currentMetricTypeInfo_.metadata.supportsRangeOfInterest &&
this.rangeOfInterest &&
- !this.rangeOfInterest.isEmpty)
+ !this.rangeOfInterest.isEmpty) {
options.rangeOfInterest = this.rangeOfInterest;
+ }
var startDate = new Date();
try {
@@ -193,8 +194,9 @@ tr.exportTo('tr.ui', function() {
}
this.metricLatenciesMs_.push(new Date() - startDate);
- while (this.metricLatenciesMs_.length > 20)
+ while (this.metricLatenciesMs_.length > 20) {
this.metricLatenciesMs_.shift();
+ }
this.recomputeButton_.style.background = '';
« no previous file with comments | « tracing/tracing/ui/scripting_control.html ('k') | tracing/tracing/ui/side_panel/side_panel_container.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698