From 012449101d930ea130161e8eb317d101e6697649 Mon Sep 17 00:00:00 2001 From: Richard Hansen Date: Mon, 21 Sep 2020 16:45:25 -0400 Subject: [PATCH] SessionStore: Use `const` instead of `var` --- src/node/db/SessionStore.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/node/db/SessionStore.js b/src/node/db/SessionStore.js index cf52b4af4..040f108c5 100644 --- a/src/node/db/SessionStore.js +++ b/src/node/db/SessionStore.js @@ -7,12 +7,13 @@ * express-session, which can't actually use promises anyway. */ -var Store = require('ep_etherpad-lite/node_modules/express-session').Store, - db = require('ep_etherpad-lite/node/db/DB').db, - log4js = require('ep_etherpad-lite/node_modules/log4js'), - messageLogger = log4js.getLogger("SessionStore"); +const Store = require('ep_etherpad-lite/node_modules/express-session').Store; +const db = require('ep_etherpad-lite/node/db/DB').db; +const log4js = require('ep_etherpad-lite/node_modules/log4js'); -var SessionStore = module.exports = function SessionStore() {}; +const messageLogger = log4js.getLogger('SessionStore'); + +const SessionStore = module.exports = function SessionStore() {}; SessionStore.prototype.__proto__ = Store.prototype;