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

Unified Diff: tracing/tracing/ui/analysis/container_memory_dump_sub_view.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/container_memory_dump_sub_view.html
diff --git a/tracing/tracing/ui/analysis/container_memory_dump_sub_view.html b/tracing/tracing/ui/analysis/container_memory_dump_sub_view.html
index d5511f290005fb3fdec15af029da8f485772765a..3615088d7be118b9bfccdbbdad40b45ab1d97f51 100644
--- a/tracing/tracing/ui/analysis/container_memory_dump_sub_view.html
+++ b/tracing/tracing/ui/analysis/container_memory_dump_sub_view.html
@@ -72,17 +72,16 @@ tr.exportTo('tr.ui.analysis', function() {
updateContents_: function() {
Polymer.dom(this.$.content).textContent = '';
- if (this.dumpsByContainerName_ === undefined)
- return;
+ if (this.dumpsByContainerName_ === undefined) return;
var containerNames = Object.keys(this.dumpsByContainerName_);
- if (containerNames.length === 0)
- return;
+ if (containerNames.length === 0) return;
- if (containerNames.length > 1)
+ if (containerNames.length > 1) {
this.buildViewForMultipleContainerNames_();
- else
+ } else {
this.buildViewForSingleContainerName_();
+ }
},
buildViewForSingleContainerName_: function() {
@@ -120,8 +119,9 @@ tr.exportTo('tr.ui.analysis', function() {
title: 'Dump',
value: function(row) {
- if (row.subRows === undefined)
+ if (row.subRows === undefined) {
return this.singleDumpValue_(row);
+ }
return this.groupedDumpValue_(row);
},
« no previous file with comments | « tracing/tracing/ui/analysis/analysis_view.html ('k') | tracing/tracing/ui/analysis/container_memory_dump_sub_view_test.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698