Commit 2a365d69 authored by Ruben ten Hove's avatar Ruben ten Hove
Browse files

fix linter issues


Signed-off-by: default avatarRuben ten Hove <git@rhtenhove.nl>
parent afc4a3e1
......@@ -6,11 +6,11 @@ const GitlabStrategy = require('passport-gitlab2').Strategy
const config = require('../../../config')
const response = require('../../../response')
const { setReturnToFromReferer, passportGeneralCallback } = require('../utils')
const HttpsProxyAgent = require('https-proxy-agent');
const HttpsProxyAgent = require('https-proxy-agent')
const gitlabAuth = module.exports = Router()
let gitlabAuthStrategy = new GitlabStrategy({
const gitlabAuthStrategy = new GitlabStrategy({
baseURL: config.gitlab.baseURL,
clientID: config.gitlab.clientID,
clientSecret: config.gitlab.clientSecret,
......@@ -19,8 +19,8 @@ let gitlabAuthStrategy = new GitlabStrategy({
}, passportGeneralCallback)
if (process.env['https_proxy']) {
let httpsProxyAgent = new HttpsProxyAgent(process.env['https_proxy']);
gitlabAuthStrategy._oauth2.setAgent(httpsProxyAgent);
const httpsProxyAgent = new HttpsProxyAgent(process.env['https_proxy'])
gitlabAuthStrategy._oauth2.setAgent(httpsProxyAgent)
}
passport.use(gitlabAuthStrategy)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment