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
6
6
const config = require ( '../../../config' )
7
7
const response = require ( '../../../response' )
8
8
const { setReturnToFromReferer, passportGeneralCallback } = require ( '../utils' )
9
- const HttpsProxyAgent = require ( 'https-proxy-agent' ) ;
9
+ const HttpsProxyAgent = require ( 'https-proxy-agent' )
10
10
11
11
const gitlabAuth = module . exports = Router ( )
12
12
13
- let gitlabAuthStrategy = new GitlabStrategy ( {
13
+ const gitlabAuthStrategy = new GitlabStrategy ( {
14
14
baseURL : config . gitlab . baseURL ,
15
15
clientID : config . gitlab . clientID ,
16
16
clientSecret : config . gitlab . clientSecret ,
@@ -19,8 +19,8 @@ let gitlabAuthStrategy = new GitlabStrategy({
19
19
} , passportGeneralCallback )
20
20
21
21
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 )
24
24
}
25
25
26
26
passport . use ( gitlabAuthStrategy )
You can’t perform that action at this time.
0 commit comments