From 804b55076dcf0df8695006ab975e31e8af329e85 Mon Sep 17 00:00:00 2001 From: Christian Paul Date: Sat, 23 Dec 2017 00:07:34 -0800 Subject: [PATCH] After ESLint in utils --- src/utils.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/utils.js b/src/utils.js index 914f504..94d09cf 100644 --- a/src/utils.js +++ b/src/utils.js @@ -14,7 +14,7 @@ const constants = { const utils = { clamp: (num, min, max) => { if (num <= min) { - return min + return min; } else if (num >= max) { return max; } else { @@ -69,7 +69,7 @@ const utils = { if (color.length === 3) { const rgb = [decimal>>8, (decimal>>4)&15, decimal&15]; return rgb.map((c) => { - return c + (c<<4); + return c + (c<<4); }); } else { return [(decimal>>16)&255, (decimal>>8)&255, decimal&255]; @@ -91,7 +91,7 @@ const utils = { }, population: (val) => { - let bits = 0 + let bits = 0; while (val > 0) { bits += val & 1; val >>= 1;