Skip to content

Commit 6be31ab

Browse files
author
YusukeIwaki
committed
Remove unused imports, fixing coding style issues.
Signed-off-by: YusukeIwaki <iwaki+git@i3-systems.com>
1 parent 83fe081 commit 6be31ab

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

lib/web/auth/bitbucket/index.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,14 @@ const Router = require('express').Router
44
const passport = require('passport')
55
const BitbucketStrategy = require('passport-bitbucket-oauth2').Strategy
66
const config = require('../../../config')
7-
const response = require('../../../response')
87
const { setReturnToFromReferer, passportGeneralCallback } = require('../utils')
9-
const { URL } = require('url')
108

119
const bitbucketAuth = module.exports = Router()
1210

1311
passport.use(new BitbucketStrategy({
1412
clientID: config.bitbucket.clientID,
1513
clientSecret: config.bitbucket.clientSecret,
16-
callbackURL: config.serverURL + '/auth/bitbucket/callback',
14+
callbackURL: config.serverURL + '/auth/bitbucket/callback'
1715
}, passportGeneralCallback))
1816

1917
bitbucketAuth.get('/auth/bitbucket', function (req, res, next) {
@@ -25,6 +23,6 @@ bitbucketAuth.get('/auth/bitbucket', function (req, res, next) {
2523
bitbucketAuth.get('/auth/bitbucket/callback',
2624
passport.authenticate('bitbucket', {
2725
successReturnToOrRedirect: config.serverURL + '/',
28-
failureRedirect: config.serverURL + '/'
26+
failureRedirect: config.serverURL + '/'
2927
})
3028
)

0 commit comments

Comments
 (0)