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

Unified Diff: tracing/tracing/model/counter.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/container_memory_dump.html ('k') | tracing/tracing/model/cpu.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/model/counter.html
diff --git a/tracing/tracing/model/counter.html b/tracing/tracing/model/counter.html
index 469f4e06f2f8097594d8f47d138c151e964ee543..97f182f9a0b2f7df234931c1097d9c15e030cb7a 100644
--- a/tracing/tracing/model/counter.html
+++ b/tracing/tracing/model/counter.html
@@ -98,14 +98,12 @@ tr.exportTo('tr.model', function() {
},
get numSamples() {
- if (this.series_.length === 0)
- return 0;
+ if (this.series_.length === 0) return 0;
return this.series_[0].length;
},
get timestamps() {
- if (this.series_.length === 0)
- return [];
+ if (this.series_.length === 0) return [];
return this.series_[0].timestamps;
},
@@ -136,8 +134,9 @@ tr.exportTo('tr.model', function() {
* specified.
*/
shiftTimestampsForward: function(amount) {
- for (var i = 0; i < this.series_.length; ++i)
+ for (var i = 0; i < this.series_.length; ++i) {
this.series_[i].shiftTimestampsForward(amount);
+ }
},
/**
@@ -148,8 +147,7 @@ tr.exportTo('tr.model', function() {
this.maxTotal = 0;
this.bounds.reset();
- if (this.series_.length === 0)
- return;
+ if (this.series_.length === 0) return;
var firstSeries = this.series_[0];
var lastSeries = this.series_[this.series_.length - 1];
@@ -179,11 +177,9 @@ tr.exportTo('tr.model', function() {
*/
Counter.compare = function(x, y) {
var tmp = x.parent.compareTo(y.parent);
- if (tmp !== 0)
- return tmp;
+ if (tmp !== 0) return tmp;
var tmp = x.name.localeCompare(y.name);
- if (tmp === 0)
- return x.tid - y.tid;
+ if (tmp === 0) return x.tid - y.tid;
return tmp;
};
« no previous file with comments | « tracing/tracing/model/container_memory_dump.html ('k') | tracing/tracing/model/cpu.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698