mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-26 10:56:19 +08:00
Fix remaining lint errors (#19166)
This commit is contained in:
2
types/passport-github2/index.d.ts
vendored
2
types/passport-github2/index.d.ts
vendored
@@ -1,7 +1,7 @@
|
||||
// Type definitions for passport-github 1.1
|
||||
// Project: https://github.com/jaredhanson/passport-github
|
||||
// Definitions by: Yasunori Ohoka <https://github.com/yasupeke>
|
||||
// Maarten Mulders <https://github.com/mthmulders/>
|
||||
// Maarten Mulders <https://github.com/mthmulders>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.2
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ passport.use(new github.Strategy(
|
||||
},
|
||||
(accessToken: string, refreshToken: string, profile: github.Profile, done: (error: any, user?: any) => void) => {
|
||||
User.findOrCreate(profile.id, profile.provider, (err, user) => {
|
||||
if (err) { return done(err); }
|
||||
if (err) { done(err); return; }
|
||||
done(null, user);
|
||||
});
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user