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

Unified Diff: tracing/tracing/ui/analysis/analysis_link.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
« no previous file with comments | « tracing/tracing/ui/analysis/alert_sub_view.html ('k') | tracing/tracing/ui/analysis/analysis_sub_view.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/ui/analysis/analysis_link.html
diff --git a/tracing/tracing/ui/analysis/analysis_link.html b/tracing/tracing/ui/analysis/analysis_link.html
index a0fd79af567b7807d7d4b1d1b575e8fcc84acaaf..c16cb6884e81f25da5c245b2c1e60aab7ab797ba 100644
--- a/tracing/tracing/ui/analysis/analysis_link.html
+++ b/tracing/tracing/ui/analysis/analysis_link.html
@@ -97,8 +97,9 @@ Polymer({
setSelectionAndContent: function(selection, opt_textContent) {
this.selection_ = selection;
- if (opt_textContent)
+ if (opt_textContent) {
Polymer.dom(this).textContent = opt_textContent;
+ }
},
/**
@@ -109,14 +110,16 @@ Polymer({
*/
getCurrentSelection_: function() {
// Gets the current selection, invoking the selection function if needed.
- if (typeof this.selection_ === 'function')
+ if (typeof this.selection_ === 'function') {
return this.selection_();
+ }
return this.selection_;
},
setHighlight_: function(opt_eventSet) {
- if (this.controller_)
+ if (this.controller_) {
this.controller_.changeAnalysisLinkHoveredEvents(opt_eventSet);
+ }
},
clearHighlight_: function(opt_eventSet) {
@@ -124,8 +127,7 @@ Polymer({
},
onClicked_: function(clickEvent) {
- if (!this.selection_)
- return;
+ if (!this.selection_) return;
clickEvent.stopPropagation();
« no previous file with comments | « tracing/tracing/ui/analysis/alert_sub_view.html ('k') | tracing/tracing/ui/analysis/analysis_sub_view.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698