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

Unified Diff: tracing/tracing/ui/analysis/memory_dump_heap_details_pane.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/ui/analysis/memory_dump_heap_details_pane.html
diff --git a/tracing/tracing/ui/analysis/memory_dump_heap_details_pane.html b/tracing/tracing/ui/analysis/memory_dump_heap_details_pane.html
index 32dec9fdbee1a85899a22131728bc2ee36ce1d7c..8956c7000356cfa88064b802d6bc7b71b1693cfd 100644
--- a/tracing/tracing/ui/analysis/memory_dump_heap_details_pane.html
+++ b/tracing/tracing/ui/analysis/memory_dump_heap_details_pane.html
@@ -196,10 +196,12 @@ tr.exportTo('tr.ui.analysis', function() {
var hasDisplayedChildren = false;
var allDisplayedChildrenHaveDisplayedCounts = true;
for (var child of stackFrameNode.children[dimensionIndex].values()) {
- if (child.values[0].totalState < this.minDisplayedTotalState_)
+ if (child.values[0].totalState < this.minDisplayedTotalState_) {
continue;
- if (child.values[1].totalState < this.minDisplayedTotalState_)
+ }
+ if (child.values[1].totalState < this.minDisplayedTotalState_) {
allDisplayedChildrenHaveDisplayedCounts = false;
+ }
childDict[child.title[dimensionIndex]] = child;
displayedChildrenTotalSize += child.values[0].total;
displayedChildrenTotalCount += child.values[1].total;
@@ -388,8 +390,7 @@ tr.exportTo('tr.ui.analysis', function() {
createHeapTree_: function() {
var definedHeapDump = tr.b.findFirstInArray(this.heapDumps_);
- if (definedHeapDump === undefined)
- return undefined;
+ if (definedHeapDump === undefined) return undefined;
// The title of the root node is the name of the allocator.
var rootRowTitle = definedHeapDump.allocatorName;

Powered by Google App Engine
This is Rietveld 408576698