Fix remaining lint errors (#19166)

This commit is contained in:
Andy
2017-08-20 15:37:53 -07:00
committed by GitHub
parent 83230ae14e
commit 924fafffc0
861 changed files with 2641 additions and 2198 deletions

View File

@@ -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

View File

@@ -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);
});
})