Remove testing conditions

This commit is contained in:
Michael Schmatz 2014-07-16 19:49:48 -07:00
parent c717e609ea
commit 2a865a0ca0
2 changed files with 2 additions and 2 deletions

View file

@ -4,7 +4,7 @@ log = require 'winston'
class LockManager
constructor: ->
unless config.isProduction or config.redis.host isnt "localhost"
unless config.isProduction
throw "You shouldn't be instantiating distributed locks unless in production."
@redisNotAvailable = true
@redisClient = redis.createClient config.redis.port, config.redis.host

View file

@ -8,7 +8,7 @@ LevelSession = require '../levels/sessions/LevelSession'
Level = require '../levels/Level'
log = require 'winston'
sendwithus = require '../sendwithus'
if config.isProduction or config.redis.host isnt "localhost" #TODO: Ask Nick and Scott to change their environment variables and change the deploy ones
if config.isProduction
lockManager = require '../commons/LockManager'
module.exports.setup = (app) ->