SessionStore: Wrap long line

pull/4313/head
Richard Hansen 2020-09-21 16:58:54 -04:00 committed by John McLear
parent 90775cec0d
commit 0504e07eb4
1 changed files with 2 additions and 1 deletions

View File

@ -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 {