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

Unified Diff: tracing/tracing/base/sinebow_color_generator.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/base/sinebow_color_generator.html
diff --git a/tracing/tracing/base/sinebow_color_generator.html b/tracing/tracing/base/sinebow_color_generator.html
index c6aba3c02014b743030a597bf44bac1318805a37..8d5d388e8d685e1078de791f4a239c834cc49db1 100644
--- a/tracing/tracing/base/sinebow_color_generator.html
+++ b/tracing/tracing/base/sinebow_color_generator.html
@@ -34,8 +34,9 @@ tr.exportTo('tr.b', function() {
SinebowColorGenerator.prototype = {
colorForKey: function(key) {
- if (!this.keyToColor[key])
+ if (!this.keyToColor[key]) {
this.keyToColor[key] = this.nextColor();
+ }
return this.keyToColor[key];
},

Powered by Google App Engine
This is Rietveld 408576698