Skip to content

Commit 11adc29

Browse files
committed
fix lint issues
1 parent 239e7a1 commit 11adc29

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

lib/createClient.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ module.exports = function createClient (port_arg, host_arg, options) {
2929
// [redis:]//[[user][:password]@][host][:port][/db-number][?db=db-number[&password=bar[&option=value]]]
3030
if (parsed.slashes) { // We require slashes
3131
if (parsed.auth) {
32-
var columnIndex = parsed.auth.indexOf(':');
33-
options.password = parsed.auth.slice(columnIndex + 1);
34-
if(columnIndex>0){
35-
options.user = parsed.auth.slice(0, columnIndex);
36-
}
32+
var columnIndex = parsed.auth.indexOf(':');
33+
options.password = parsed.auth.slice(columnIndex + 1);
34+
if (columnIndex > 0){
35+
options.user = parsed.auth.slice(0, columnIndex);
36+
}
3737
}
3838
if (parsed.protocol) {
3939
if (parsed.protocol === 'rediss:') {

lib/individualCommands.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,8 +181,8 @@ Multi.prototype.info = Multi.prototype.INFO = function info (section, callback)
181181
};
182182

183183
function auth_callback (self, pass, user, callback) {
184-
// Backward compatibility support for auth with password only
185-
if (user instanceof Function){
184+
// Backward compatibility support for auth with password on
185+
if (user instanceof Function){
186186
callback = user;
187187
user = null;
188188
}

0 commit comments

Comments
 (0)