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

Unified Diff: tracing/tracing/base/sinebow_color_generator.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/base/settings.html ('k') | tracing/tracing/base/task.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 436a40641bf8e1508b6d032bdd3d95afad41c761..7ed52d3bf7b5f4e1bb03ae496e23481f0e57dab2 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];
},
« no previous file with comments | « tracing/tracing/base/settings.html ('k') | tracing/tracing/base/task.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698