1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-06 02:15:48 +03:00

Some small code style changes

Revert some done stuff
This commit is contained in:
Ruben Bridgewater
2015-09-01 21:45:54 +02:00
parent 9acbd6c860
commit ba779ac361
3 changed files with 12 additions and 8 deletions

View File

@@ -955,7 +955,7 @@ RedisClient.prototype.select = function (db, callback) {
if (err === null) {
self.selected_db = db;
}
if (typeof(callback) === 'function') {
if (typeof callback === 'function') {
callback(err, res);
} else if (err) {
self.emit('error', err);