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

Unified Diff: tracing/tracing/ui/tracks/stacked_bars_track.html

Issue 2776653002: [ESLint] Fix violations when enabling curly rule in eslint. (Closed)
Patch Set: Fix test 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/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 3118bd4d3a4ec2db80bd7d39d4609ad0c346c37f..391978a788e40b44975e891cbd25e87919fa7473 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);
}

Powered by Google App Engine
This is Rietveld 408576698