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

Unified Diff: tracing/tracing/model/location.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/kernel.html ('k') | tracing/tracing/model/memory_allocator_dump.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/model/location.html
diff --git a/tracing/tracing/model/location.html b/tracing/tracing/model/location.html
index c3710f76419cf5e2464ad1a3f2ad4d7e6942001e..d3fb61fce54620626e3aca55aa337b81c680147d 100644
--- a/tracing/tracing/model/location.html
+++ b/tracing/tracing/model/location.html
@@ -69,8 +69,7 @@ tr.exportTo('tr.model', function() {
elem = elem.parentElement;
}
- if (yComponents.length === 0)
- return;
+ if (yComponents.length === 0) return;
return new Location(xWorld, yComponents);
};
@@ -82,8 +81,7 @@ tr.exportTo('tr.model', function() {
// the boundingRect's top of containing track.
var containerToTrack = viewport.containerToTrackMap;
var elem = containerToTrack.getTrackByStableId(stableId);
- if (!elem)
- return;
+ if (!elem) return;
var firstY = elem.getBoundingClientRect().top;
while (elem instanceof tr.ui.tracks.Track) {
@@ -96,8 +94,7 @@ tr.exportTo('tr.model', function() {
elem = elem.parentElement;
}
- if (yComponents.length === 0)
- return;
+ if (yComponents.length === 0) return;
return new Location(xWorld, yComponents);
};
@@ -116,8 +113,7 @@ tr.exportTo('tr.model', function() {
for (var i in this.yComponents_) {
var yComponent = this.yComponents_[i];
var track = containerToTrack.getTrackByStableId(yComponent.stableId);
- if (track !== undefined)
- return track;
+ if (track !== undefined) return track;
}
},
« no previous file with comments | « tracing/tracing/model/kernel.html ('k') | tracing/tracing/model/memory_allocator_dump.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698