remove unneded check

This commit is contained in:
Simon Martín 2018-08-01 11:49:40 +02:00
parent 74831c9b7f
commit 04faaea10d

View File

@ -79,10 +79,7 @@ TemplateMaps.prototype._redisCmd = function(redisFunc, redisArgs, callback) {
return callback(err);
}
if ( ! _.isUndefined(redisClient) ) {
this.redis_pool.release(this.db_signatures, redisClient);
}
this.redis_pool.release(this.db_signatures, redisClient);
callback(null, data);
});
});