Skip to content
Browse files

Update src/scripts/translate.coffee

simply changed '&&' to 'and' to make it more coffee-fied
  • Loading branch information...
1 parent d1986d9 commit 0534f21a0cbb5ae64a73b429b609bdb86248bc19 @elmoeleven elmoeleven committed Aug 20, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/scripts/translate.coffee
View
4 src/scripts/translate.coffee
@@ -97,10 +97,10 @@ module.exports = (robot) ->
.header('User-Agent', 'Mozilla/5.0')
.get() (err, res, body) ->
data = body
- if data.length > 4 && data[0] == '['
+ if data.length > 4 and data[0] == '['
parsed = eval(data)
language =languages[parsed[2]]
- parsed = parsed[0] && parsed[0][0] && parsed[0][0][0]
+ parsed = parsed[0] and parsed[0][0] and parsed[0][0][0]
if parsed
if msg.match[2] is undefined
msg.send "#{term} is #{language} for #{parsed}"

0 comments on commit 0534f21

Please sign in to comment.
Something went wrong with that request. Please try again.