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

Unified Diff: tracing/tracing/ui/analysis/single_object_instance_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_instance_sub_view.html
diff --git a/tracing/tracing/ui/analysis/single_object_instance_sub_view.html b/tracing/tracing/ui/analysis/single_object_instance_sub_view.html
index c450bbcc9e99ffe2601972a10dbbb0c53951a742..696cf84782f81f05e7d450146489783c23a6016d 100644
--- a/tracing/tracing/ui/analysis/single_object_instance_sub_view.html
+++ b/tracing/tracing/ui/analysis/single_object_instance_sub_view.html
@@ -59,11 +59,13 @@ Polymer({
},
get requiresTallView() {
- if (this.$.content.children.length === 0)
+ if (this.$.content.children.length === 0) {
return false;
+ }
if (this.$.content.children[0] instanceof
- tr.ui.analysis.ObjectInstanceView)
+ tr.ui.analysis.ObjectInstanceView) {
return this.$.content.children[0].requiresTallView;
+ }
},
get selection() {
@@ -72,8 +74,9 @@ Polymer({
set selection(selection) {
var instance = tr.b.getOnlyElement(selection);
- if (!(instance instanceof tr.model.ObjectInstance))
+ if (!(instance instanceof tr.model.ObjectInstance)) {
throw new Error('Only supports object instances');
+ }
Polymer.dom(this.$.content).textContent = '';
this.currentSelection_ = selection;

Powered by Google App Engine
This is Rietveld 408576698