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

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: Fix test 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/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 99980ca7d6a4b923e6d041439ef314476850fb85..d7e53d8abda65c54c58036a189a436938841b080 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 = '';

Powered by Google App Engine
This is Rietveld 408576698