diff --git a/lib/connect-redis.js b/lib/connect-redis.js index 7f8c8456..854dbb52 100644 --- a/lib/connect-redis.js +++ b/lib/connect-redis.js @@ -29,15 +29,15 @@ module.exports = function(session) { get(sid, cb = noop) { let key = this.prefix + sid - this.client.get(key, (er, data) => { - if (er) return cb(er) + this.client.get(key, (err, data) => { + if (err) return cb(err) if (!data) return cb() let result try { result = this.serializer.parse(data) - } catch (er) { - return cb(er) + } catch (err) { + return cb(err) } return cb(null, result) })