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

Unified Diff: tracing/tracing/model/event.html

Issue 2776653002: [ESLint] Fix violations when enabling curly rule in eslint. (Closed)
Patch Set: Fix test 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/model/event.html
diff --git a/tracing/tracing/model/event.html b/tracing/tracing/model/event.html
index e3a87a09387d1e182fee375121cd70a00efe98d3..30f7e28c8ddcc8186255f358256ff65b970f18e4 100644
--- a/tracing/tracing/model/event.html
+++ b/tracing/tracing/model/event.html
@@ -58,8 +58,9 @@ tr.exportTo('tr.model', function() {
associatedAlerts: IMMUTABLE_EMPTY_SET,
addAssociatedAlert: function(alert) {
- if (this.associatedAlerts === IMMUTABLE_EMPTY_SET)
+ if (this.associatedAlerts === IMMUTABLE_EMPTY_SET) {
this.associatedAlerts = new tr.model.EventSet();
+ }
this.associatedAlerts.push(alert);
},

Powered by Google App Engine
This is Rietveld 408576698