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

Unified Diff: tracing/tracing/model/power_series.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/model/object_instance.html ('k') | tracing/tracing/model/power_series_test.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/model/power_series.html
diff --git a/tracing/tracing/model/power_series.html b/tracing/tracing/model/power_series.html
index 5e302fcda1c5abe764bc7776225c35f4a87c460f..9b553ba0e455fe2d3f1bf4d0b57a65ebd44f3841 100644
--- a/tracing/tracing/model/power_series.html
+++ b/tracing/tracing/model/power_series.html
@@ -69,8 +69,9 @@ tr.exportTo('tr.model', function() {
var endIndex = tr.b.math.findLowIndexInSortedArray(
this.samples, x => x.start, end);
- if (startIndex < 0)
+ if (startIndex < 0) {
startIndex = 0;
+ }
for (var i = startIndex; i < endIndex; i++) {
var sample = this.samples[i];
@@ -102,15 +103,15 @@ tr.exportTo('tr.model', function() {
},
shiftTimestampsForward: function(amount) {
- for (var i = 0; i < this.samples_.length; ++i)
+ for (var i = 0; i < this.samples_.length; ++i) {
this.samples_[i].start += amount;
+ }
},
updateBounds: function() {
this.bounds.reset();
- if (this.samples_.length === 0)
- return;
+ if (this.samples_.length === 0) return;
this.bounds.addValue(this.samples_[0].start);
this.bounds.addValue(this.samples_[this.samples_.length - 1].start);
« no previous file with comments | « tracing/tracing/model/object_instance.html ('k') | tracing/tracing/model/power_series_test.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698