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

Unified Diff: tracing/tracing/ui/base/chart_base_2d.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/base/chart_base_2d.html
diff --git a/tracing/tracing/ui/base/chart_base_2d.html b/tracing/tracing/ui/base/chart_base_2d.html
index ffab853b9fc4dcd054eca8d5b759d4bb10004315..81171063112c722102e1b86fb0884c5806534d5f 100644
--- a/tracing/tracing/ui/base/chart_base_2d.html
+++ b/tracing/tracing/ui/base/chart_base_2d.html
@@ -174,8 +174,9 @@ tr.exportTo('tr.ui.b', function() {
// getDataSeries() before setting data.
this.data_.forEach(function(datum) {
Object.keys(datum).forEach(function(key) {
- if (this.isDatumFieldSeries_(key))
+ if (this.isDatumFieldSeries_(key)) {
this.getDataSeries(key);
+ }
}, this);
}, this);
},
@@ -322,8 +323,9 @@ tr.exportTo('tr.ui.b', function() {
this.yLogScaleMin_ = undefined;
if (this.autoDataRange_.min !== undefined) {
var minValue = this.autoDataRange_.min;
- if (minValue === 0)
+ if (minValue === 0) {
minValue = 1;
+ }
var onePowerLess = tr.b.lesserPower(minValue / 10);
this.yLogScaleMin_ = onePowerLess;
@@ -441,14 +443,11 @@ tr.exportTo('tr.ui.b', function() {
d3.keys(multiSeriesDatum).forEach(function(seriesKey) {
// Skip 'x' - it's not a series
- if (seriesKey === 'x')
- return;
+ if (seriesKey === 'x') return;
- if (multiSeriesDatum[seriesKey] === undefined)
- return;
+ if (multiSeriesDatum[seriesKey] === undefined) return;
- if (!this.isDatumFieldSeries_(seriesKey))
- return;
+ if (!this.isDatumFieldSeries_(seriesKey)) return;
var singleSeriesDatum = {x: x};
singleSeriesDatum[seriesKey] = multiSeriesDatum[seriesKey];

Powered by Google App Engine
This is Rietveld 408576698