SessionStore: Wrap long line
parent
90775cec0d
commit
0504e07eb4
|
@ -21,7 +21,8 @@ SessionStore.prototype.get = function(sid, fn) {
|
|||
logger.debug('GET ' + sid);
|
||||
db.get('sessionstorage:' + sid, (err, sess) => {
|
||||
if (sess) {
|
||||
sess.cookie.expires = 'string' == typeof sess.cookie.expires ? new Date(sess.cookie.expires) : sess.cookie.expires;
|
||||
sess.cookie.expires = ('string' == typeof sess.cookie.expires
|
||||
? new Date(sess.cookie.expires) : sess.cookie.expires);
|
||||
if (!sess.cookie.expires || new Date() < sess.cookie.expires) {
|
||||
fn(null, sess);
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue