linting, TIL that obj.$key is valid syntax

This commit is contained in:
psychobunny
2014-10-08 12:22:39 -04:00
parent 729ed6fbda
commit f149fb0191
3 changed files with 11 additions and 8 deletions

View File

@@ -78,7 +78,9 @@
var redis_socket_or_host = nconf.get('redis:host'),
cxn, dbIdx;
if (!redis) redis = require('redis');
if (!redis) {
redis = require('redis');
}
if (redis_socket_or_host && redis_socket_or_host.indexOf('/') >= 0) {
/* If redis.host contains a path name character, use the unix dom sock connection. ie, /tmp/redis.sock */