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

Unified Diff: tracing/tracing/ui/tracks/process_track.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
Index: tracing/tracing/ui/tracks/process_track.html
diff --git a/tracing/tracing/ui/tracks/process_track.html b/tracing/tracing/ui/tracks/process_track.html
index 055c1dab37fbbbf557911811e5ab41d8d02c7553..8cb6b70a4feb3171e2d29b857f8cdc1e87679d96 100644
--- a/tracing/tracing/ui/tracks/process_track.html
+++ b/tracing/tracing/ui/tracks/process_track.html
@@ -31,8 +31,9 @@ tr.exportTo('tr.ui.tracks', function() {
switch (type) {
case tr.ui.tracks.DrawType.INSTANT_EVENT:
if (!this.processBase.instantEvents ||
- this.processBase.instantEvents.length === 0)
+ this.processBase.instantEvents.length === 0) {
break;
+ }
var ctx = this.context();
@@ -80,12 +81,12 @@ tr.exportTo('tr.ui.tracks', function() {
ctx.fillStyle = '#eee';
for (var i = 0; i < this.children.length; ++i) {
if (!(this.children[i] instanceof tr.ui.tracks.Track) ||
- (this.children[i] instanceof tr.ui.tracks.SpacingTrack))
+ (this.children[i] instanceof tr.ui.tracks.SpacingTrack)) {
continue;
+ }
draw = !draw;
- if (!draw)
- continue;
+ if (!draw) continue;
var bounds = this.children[i].getBoundingClientRect();
ctx.fillRect(0, pixelRatio * (bounds.top - canvasBounds.top),
« no previous file with comments | « tracing/tracing/ui/tracks/process_summary_track.html ('k') | tracing/tracing/ui/tracks/process_track_base.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698