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

Unified Diff: tracing/tracing/ui/base/chart_base_2d.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/base/chart_base.html ('k') | tracing/tracing/ui/base/checkbox.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 9996dc2786e2b552b1f4e285265e948a5898ff7e..58371e3e32701a4346971d428168c260866537e0 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.math.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];
« no previous file with comments | « tracing/tracing/ui/base/chart_base.html ('k') | tracing/tracing/ui/base/checkbox.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698