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

Unified Diff: tracing/tracing/extras/tquery/tquery.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/extras/tquery/filter_not.html ('k') | tracing/tracing/extras/tquery/tquery_test.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/extras/tquery/tquery.html
diff --git a/tracing/tracing/extras/tquery/tquery.html b/tracing/tracing/extras/tquery/tquery.html
index a837e7cbf31a10d5f0d219930616c463f9132262..bea47f9df80d193f261a2f51be97253ebd217753 100644
--- a/tracing/tracing/extras/tquery/tquery.html
+++ b/tracing/tracing/extras/tquery/tquery.html
@@ -24,8 +24,7 @@ found in the LICENSE file.
tr.exportTo('tr.e.tquery', function() {
function addEventTreeToSelection(selection, event) {
selection.push(event);
- if (!event.subSlices)
- return;
+ if (!event.subSlices) return;
event.subSlices.forEach(
addEventTreeToSelection.bind(undefined, selection));
}
@@ -86,8 +85,7 @@ tr.exportTo('tr.e.tquery', function() {
for (var i = nodes.length - 1; i >= 0; i--) {
var node = nodes[i];
// Reuse any memoized result.
- if (node.selection_ !== undefined)
- continue;
+ if (node.selection_ !== undefined) continue;
node.selection_ = new tr.model.EventSet();
if (node.parent_ === undefined) {
// If this is the root, start by collecting all objects from the
@@ -130,11 +128,11 @@ tr.exportTo('tr.e.tquery', function() {
if (inputSelection.contains(event) && !seenEvents[event.guid]) {
seenEvents[event.guid] = true;
if (!this.filterExpression_ ||
- this.filterExpression_.evaluate(context))
+ this.filterExpression_.evaluate(context)) {
outputSelection.push(event);
+ }
}
- if (!event.subSlices)
- return;
+ if (!event.subSlices) return;
context = context.push(event);
for (var i = 0; i < event.subSlices.length; i++) {
context.event = event.subSlices[i];
@@ -149,8 +147,9 @@ tr.exportTo('tr.e.tquery', function() {
var filterTask = new tr.b.Task();
for (let container of this.model_.getDescendantEventContainers()) {
filterTask.subTask(() => {
- for (var event of container.childEvents())
+ for (var event of container.childEvents()) {
addEventTreeToSelection(selection, event);
+ }
}, this);
}
return filterTask;
« no previous file with comments | « tracing/tracing/extras/tquery/filter_not.html ('k') | tracing/tracing/extras/tquery/tquery_test.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698