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

Unified Diff: tracing/tracing/ui/analysis/single_object_snapshot_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/single_object_snapshot_sub_view.html
diff --git a/tracing/tracing/ui/analysis/single_object_snapshot_sub_view.html b/tracing/tracing/ui/analysis/single_object_snapshot_sub_view.html
index dffac714520dca8a4a81d147bfd9d41722971680..b0e530d9b2120fe9b2e57d762f0bef3eeb35f8d5 100644
--- a/tracing/tracing/ui/analysis/single_object_snapshot_sub_view.html
+++ b/tracing/tracing/ui/analysis/single_object_snapshot_sub_view.html
@@ -58,10 +58,12 @@ Polymer({
},
get requiresTallView() {
- if (this.children.length === 0)
+ if (this.children.length === 0) {
return false;
- if (this.children[0] instanceof tr.ui.analysis.ObjectSnapshotView)
+ }
+ if (this.children[0] instanceof tr.ui.analysis.ObjectSnapshotView) {
return this.children[0].requiresTallView;
+ }
},
get selection() {
@@ -70,8 +72,9 @@ Polymer({
set selection(selection) {
var snapshot = tr.b.getOnlyElement(selection);
- if (!(snapshot instanceof tr.model.ObjectSnapshot))
+ if (!(snapshot instanceof tr.model.ObjectSnapshot)) {
throw new Error('Only supports object instances');
+ }
Polymer.dom(this).textContent = '';
this.currentSelection_ = selection;

Powered by Google App Engine
This is Rietveld 408576698