Skip to content

Commit 590128f

Browse files
committed
lint: lib/auth/saml/index.ts
remove unused vars lib/auth/saml
1 parent d6f100c commit 590128f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/auth/saml/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ passport.use(new SamlStrategy({
5656
defaults: {
5757
profile: stringifiedProfile
5858
}
59-
}).spread(function (user, created) {
59+
}).spread(function (user) {
6060
if (user) {
6161
let needSave = false
6262
if (user.profile !== stringifiedProfile) {
@@ -99,5 +99,6 @@ samlAuth.post('/auth/saml/callback', urlencodedParser,
9999

100100
samlAuth.get('/auth/saml/metadata', function (req, res) {
101101
res.type('application/xml')
102+
// eslint-disable-next-line
102103
res.send((passport as any)._strategy('saml').generateServiceProviderMetadata())
103104
})

0 commit comments

Comments
 (0)