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