From fb6f0fb69b09ad9cbaf18e48e569fbdb5aa1af23 Mon Sep 17 00:00:00 2001 From: Artem Sapegin Date: Thu, 20 Dec 2012 18:25:56 +0400 Subject: [PATCH] Tweak color.js. --- bin/color.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/color.js b/bin/color.js index e2a3206..3f21fd2 100755 --- a/bin/color.js +++ b/bin/color.js @@ -16,7 +16,7 @@ var format = 'hsl'; var args = process.argv.splice(2); if (!args.length) helpme(); -if (args[0] == '--rgb') { +if (args[0] === '--rgb') { format = 'rgb'; args = args.splice(1); } @@ -27,7 +27,7 @@ if (!rgb) helpme(); var alpha = args[1]; -if (format == 'hsl') { +if (format === 'hsl') { console.log(toHslString(rgb2hsl(rgb), alpha)); } else {