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

Unified Diff: tracing/tracing/extras/tquery/filter_has_ancestor.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/extras/tquery/filter_has_ancestor.html
diff --git a/tracing/tracing/extras/tquery/filter_has_ancestor.html b/tracing/tracing/extras/tquery/filter_has_ancestor.html
index 2b7d21148c99bc139be28d09fc274d6e9df771c6..355837ccd112f96fcf46a712b9a255d937813cab 100644
--- a/tracing/tracing/extras/tquery/filter_has_ancestor.html
+++ b/tracing/tracing/extras/tquery/filter_has_ancestor.html
@@ -28,12 +28,12 @@ tr.exportTo('tr.e.tquery', function() {
},
evaluate: function(context) {
- if (!this.subExpression)
+ if (!this.subExpression) {
return context.ancestors.length > 0;
+ }
while (context.ancestors.length) {
context = context.pop();
- if (this.subExpression.evaluate(context))
- return true;
+ if (this.subExpression.evaluate(context)) return true;
}
return false;
}
« no previous file with comments | « tracing/tracing/extras/tquery/filter_any_of.html ('k') | tracing/tracing/extras/tquery/filter_has_duration.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698