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

Unified Diff: tracing/tracing/ui/analysis/alert_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
« no previous file with comments | « tracing/tracing/trace2html.html ('k') | tracing/tracing/ui/analysis/analysis_link.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/ui/analysis/alert_sub_view.html
diff --git a/tracing/tracing/ui/analysis/alert_sub_view.html b/tracing/tracing/ui/analysis/alert_sub_view.html
index bedfea04240c15463b415aa1d848fac221058d00..ade77dc9f175d9032d040fc6f711fc6b20c03cb1 100644
--- a/tracing/tracing/ui/analysis/alert_sub_view.html
+++ b/tracing/tracing/ui/analysis/alert_sub_view.html
@@ -83,8 +83,9 @@ Polymer({
new tr.model.EventSet(event), event.title);
var valueString = '';
- if (event instanceof tr.model.TimedEvent)
+ if (event instanceof tr.model.TimedEvent) {
valueString = 'took ' + event.duration.toFixed(2) + 'ms';
+ }
rows.push({
name: linkEl,
@@ -152,11 +153,11 @@ Polymer({
},
get relatedEventsToHighlight() {
- if (!this.currentSelection_)
- return undefined;
+ if (!this.currentSelection_) return undefined;
var result = new tr.model.EventSet();
- for (var event of this.currentSelection_)
+ for (var event of this.currentSelection_) {
result.addEventSet(event.associatedEvents);
+ }
return result;
}
});
« no previous file with comments | « tracing/tracing/trace2html.html ('k') | tracing/tracing/ui/analysis/analysis_link.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698