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

Unified Diff: tracing/tracing/base/color.html

Issue 2432993005: Turn on eslint rule one-var and fix existing errors. (Closed)
Patch Set: Created 4 years, 2 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 | « dashboard/dashboard/elements/chart-container.html ('k') | tracing/tracing/base/quad.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/base/color.html
diff --git a/tracing/tracing/base/color.html b/tracing/tracing/base/color.html
index d173fb45073abed76e1da9ed03bb202b9c19d269..efb73e37ca3150a3203b213efd0528a2bc8adaf7 100644
--- a/tracing/tracing/base/color.html
+++ b/tracing/tracing/base/color.html
@@ -89,7 +89,9 @@ tr.exportTo('tr.b', function() {
* |a| Alpha in [0, 1]
*/
Color.fromHSLExplicit = function(h, s, l, a) {
- var r, g, b;
+ var r;
+ var g;
+ var b;
function hue2rgb(p, q, t) {
if (t < 0) t += 1;
if (t > 1) t -= 1;
@@ -211,7 +213,8 @@ tr.exportTo('tr.b', function() {
var max = Math.max(r, g, b);
var min = Math.min(r, g, b);
- var h, s;
+ var h;
+ var s;
var l = (max + min) / 2;
if (min === max) {
h = 0;
« no previous file with comments | « dashboard/dashboard/elements/chart-container.html ('k') | tracing/tracing/base/quad.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698