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

Unified Diff: tracing/tracing/ui/tracks/stacked_bars_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
« no previous file with comments | « tracing/tracing/ui/tracks/slice_group_track.html ('k') | tracing/tracing/ui/tracks/thread_track.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/ui/tracks/stacked_bars_track.html
diff --git a/tracing/tracing/ui/tracks/stacked_bars_track.html b/tracing/tracing/ui/tracks/stacked_bars_track.html
index e618bc48027677102995833f1cdfe85261da91db..3382b7744cd7c82609be294b740a3be2ba91e55d 100644
--- a/tracing/tracing/ui/tracks/stacked_bars_track.html
+++ b/tracing/tracing/ui/tracks/stacked_bars_track.html
@@ -70,8 +70,9 @@ tr.exportTo('tr.ui.tracks', function() {
function(x) { return x.ts; },
function(x, i) {
if (i === snapshots.length - 1) {
- if (snapshots.length === 1)
+ if (snapshots.length === 1) {
return maxBounds;
+ }
return snapshots[i].ts - snapshots[i - 1].ts;
}
@@ -93,8 +94,9 @@ tr.exportTo('tr.ui.tracks', function() {
* @private
*/
addEventNearToProvidedEventToSelection: function(event, offset, selection) {
- if (!(event instanceof tr.model.ObjectSnapshot))
+ if (!(event instanceof tr.model.ObjectSnapshot)) {
throw new Error('Unrecognized event');
+ }
var objectSnapshots = this.objectInstance_.snapshots;
var index = objectSnapshots.indexOf(event);
var newIndex = index + offset;
@@ -116,8 +118,7 @@ tr.exportTo('tr.ui.tracks', function() {
worldX,
worldMaxDist);
- if (!snapshot)
- return;
+ if (!snapshot) return;
selection.push(snapshot);
}
« no previous file with comments | « tracing/tracing/ui/tracks/slice_group_track.html ('k') | tracing/tracing/ui/tracks/thread_track.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698