Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

if/THEN/else

  • Loading branch information...
commit 769a7c2af642472e7c72012fa421c9f1c820838c 1 parent 408b36e
@josip authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/colour-extractor.coffee
View
2  src/colour-extractor.coffee
@@ -57,7 +57,7 @@ exports.colourKey = (path, cb) ->
exports.rgb2hex = (r, g, b) ->
rgb = if arguments.length is 1 then r else [r, g, b]
- '#' + rgb.map((x) -> (if x < 16 '0' else '') + x.toString(16)).join('')
+ '#' + rgb.map((x) -> (if x < 16 then '0' else '') + x.toString(16)).join('')
exports.hex2rgb = (xs) ->
xs = xs.slice(1) if xs[0] is '#'
Please sign in to comment.
Something went wrong with that request. Please try again.