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

Unified Diff: tracing/tracing/base/interval_tree_test.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/base/interval_tree.html ('k') | tracing/tracing/base/iteration_helpers.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/base/interval_tree_test.html
diff --git a/tracing/tracing/base/interval_tree_test.html b/tracing/tracing/base/interval_tree_test.html
index dad90c45274f834d235474e7bd609d6dfde337c2..8cd9db89bcacf3c72eb343f01bac72f55f79d0f6 100644
--- a/tracing/tracing/base/interval_tree_test.html
+++ b/tracing/tracing/base/interval_tree_test.html
@@ -39,8 +39,7 @@ tr.b.unittest.testSuite(function() {
function sortSimpleResults(intersection) {
intersection.sort(function(a, b) {
- if (a.start === b.start)
- return a.end - b.end;
+ if (a.start === b.start) return a.end - b.end;
return a.start - b.start;
});
}
@@ -145,8 +144,9 @@ tr.b.unittest.testSuite(function() {
assert.equal(tree.size, 0);
- for (var i = 0; i < 10; ++i)
+ for (var i = 0; i < 10; ++i) {
tree.insert({start: i, end: 5});
+ }
tree.updateHighValues();
var outTree = {
@@ -221,8 +221,7 @@ tr.b.unittest.testSuite(function() {
var result = [];
function walk(node) {
- if (node === undefined)
- return;
+ if (node === undefined) return;
walk(node.leftNode);
result.push([node.maxHighLeft, node.maxHighRight]);
« no previous file with comments | « tracing/tracing/base/interval_tree.html ('k') | tracing/tracing/base/iteration_helpers.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698