From 3be119ded1dbd487c9599d4f76018d3b35bb7805 Mon Sep 17 00:00:00 2001 From: BoHong Li Date: Fri, 2 Aug 2019 00:59:29 +0800 Subject: [PATCH] refactor: fix lint on lib/web/auth/mattermost/index.js Signed-off-by: BoHong Li --- lib/web/auth/mattermost/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/web/auth/mattermost/index.js b/lib/web/auth/mattermost/index.js index 44922029..a0b440c7 100644 --- a/lib/web/auth/mattermost/index.js +++ b/lib/web/auth/mattermost/index.js @@ -8,11 +8,11 @@ const OAuthStrategy = require('passport-oauth2').Strategy const config = require('../../../config') const { setReturnToFromReferer, passportGeneralCallback } = require('../utils') -let mattermostAuth = module.exports = Router() +const mattermostAuth = module.exports = Router() const mattermostClient = new MattermostClient() -let mattermostStrategy = new OAuthStrategy({ +const mattermostStrategy = new OAuthStrategy({ authorizationURL: config.mattermost.baseURL + '/oauth/authorize', tokenURL: config.mattermost.baseURL + '/oauth/access_token', clientID: config.mattermost.clientID,