silence some new ts squigglies in the editor (#3435)

This commit is contained in:
Fredrik Adelöw
2020-11-25 09:57:16 +01:00
committed by GitHub
parent 8fd5e64351
commit fae3fafcfa
10 changed files with 18 additions and 17 deletions
@@ -163,7 +163,7 @@ export class MicrosoftAuthProvider implements OAuthHandlers {
});
}
private getUserPhoto(accessToken: string): Promise<string> {
private getUserPhoto(accessToken: string): Promise<string | undefined> {
return new Promise(resolve => {
got
.get('https://graph.microsoft.com/v1.0/me/photos/48x48/$value', {
@@ -184,7 +184,7 @@ export class MicrosoftAuthProvider implements OAuthHandlers {
`Could not retrieve user profile photo from Microsoft Graph API: ${error}`,
);
// User profile photo is optional, ignore errors and resolve undefined
resolve();
resolve(undefined);
});
});
}