File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -6,11 +6,11 @@ const GitlabStrategy = require('passport-gitlab2').Strategy
66const config = require ( '../../../config' )
77const response = require ( '../../../response' )
88const { setReturnToFromReferer, passportGeneralCallback } = require ( '../utils' )
9- const HttpsProxyAgent = require ( 'https-proxy-agent' ) ;
9+ const HttpsProxyAgent = require ( 'https-proxy-agent' )
1010
1111const 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
2121if ( 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
2626passport . use ( gitlabAuthStrategy )
You can’t perform that action at this time.
0 commit comments