Skip to content

Commit 2a365d6

Browse files
committed
fix linter issues
Signed-off-by: Ruben ten Hove <git@rhtenhove.nl>
1 parent afc4a3e commit 2a365d6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/web/auth/gitlab/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ const GitlabStrategy = require('passport-gitlab2').Strategy
66
const config = require('../../../config')
77
const response = require('../../../response')
88
const { setReturnToFromReferer, passportGeneralCallback } = require('../utils')
9-
const HttpsProxyAgent = require('https-proxy-agent');
9+
const HttpsProxyAgent = require('https-proxy-agent')
1010

1111
const gitlabAuth = module.exports = Router()
1212

13-
let gitlabAuthStrategy = new GitlabStrategy({
13+
const gitlabAuthStrategy = new GitlabStrategy({
1414
baseURL: config.gitlab.baseURL,
1515
clientID: config.gitlab.clientID,
1616
clientSecret: config.gitlab.clientSecret,
@@ -19,8 +19,8 @@ let gitlabAuthStrategy = new GitlabStrategy({
1919
}, passportGeneralCallback)
2020

2121
if (process.env['https_proxy']) {
22-
let httpsProxyAgent = new HttpsProxyAgent(process.env['https_proxy']);
23-
gitlabAuthStrategy._oauth2.setAgent(httpsProxyAgent);
22+
const httpsProxyAgent = new HttpsProxyAgent(process.env['https_proxy'])
23+
gitlabAuthStrategy._oauth2.setAgent(httpsProxyAgent)
2424
}
2525

2626
passport.use(gitlabAuthStrategy)

0 commit comments

Comments
 (0)