From 0504e07eb4c60a71b633766d17ecaa5c2b97a0b4 Mon Sep 17 00:00:00 2001 From: Richard Hansen Date: Mon, 21 Sep 2020 16:58:54 -0400 Subject: [PATCH] SessionStore: Wrap long line --- src/node/db/SessionStore.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/node/db/SessionStore.js b/src/node/db/SessionStore.js index 419da8744..e84def10a 100644 --- a/src/node/db/SessionStore.js +++ b/src/node/db/SessionStore.js @@ -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 {