Permalink
Browse files

if/THEN/else

  • Loading branch information...
1 parent 408b36e commit 769a7c2af642472e7c72012fa421c9f1c820838c @josip committed Mar 21, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 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 '#'

0 comments on commit 769a7c2

Please sign in to comment.