Permalink
Browse files

travis work!!

  • Loading branch information...
Philipp Spieß
Philipp Spieß committed Apr 28, 2012
1 parent b74124c commit 7eda9c825177ed02d20171d203b6ded016b64fd1
Showing with 3 additions and 2 deletions.
  1. +3 −2 lib/redis.coffee
View
@@ -22,8 +22,9 @@ class Redis
@client = redis.createClient rtg.port, rtg.hostname
@sub = redis.createClient rtg.port, rtg.hostname
- @client.auth rtg.auth.split(":")[1]
- @sub.auth rtg.auth.split(":")[1]
+ if rtg.auth?
+ @client.auth rtg.auth.split(":")[1]
+ @sub.auth rtg.auth.split(":")[1]
@client.on 'error', (err) =>
console.log '[Redis][Client] Error: ' + err

0 comments on commit 7eda9c8

Please sign in to comment.