Skip to content

Commit

Permalink
Update src/scripts/translate.coffee
Browse files Browse the repository at this point in the history
simply changed '&&' to 'and' to make it more coffee-fied
  • Loading branch information
elmoeleven committed Aug 20, 2012
1 parent d1986d9 commit 0534f21
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/scripts/translate.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down

0 comments on commit 0534f21

Please sign in to comment.