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

Unified Diff: tracing/tracing/ui/analysis/multi_user_expectation_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/multi_user_expectation_sub_view.html
diff --git a/tracing/tracing/ui/analysis/multi_user_expectation_sub_view.html b/tracing/tracing/ui/analysis/multi_user_expectation_sub_view.html
index 0caf158532c20dc786f86dd7522bde254c8f7a2a..6dc1eeff25e24df52350e0f9067be35f92339588 100644
--- a/tracing/tracing/ui/analysis/multi_user_expectation_sub_view.html
+++ b/tracing/tracing/ui/analysis/multi_user_expectation_sub_view.html
@@ -47,10 +47,11 @@ Polymer({
this.currentSelection_ = selection;
this.$.relatedSamples.selection = selection;
- if (this.$.relatedSamples.hasRelatedSamples())
+ if (this.$.relatedSamples.hasRelatedSamples()) {
this.$.events.style.display = '';
- else
+ } else {
this.$.events.style.display = 'none';
+ }
},
get selection() {
@@ -58,8 +59,8 @@ Polymer({
},
get relatedEventsToHighlight() {
- if (!this.currentSelection_)
- return undefined;
+ if (!this.currentSelection_) return undefined;
+
var selection = new tr.model.EventSet();
this.currentSelection_.forEach(function(ir) {
ir.associatedEvents.forEach(function(event) {

Powered by Google App Engine
This is Rietveld 408576698