mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 12:30:18 +00:00
Fix remaining lint errors (#19166)
This commit is contained in:
Vendored
+1
-1
@@ -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