Skip to content

Commit

Permalink
refactor(): remove return null
Browse files Browse the repository at this point in the history
  • Loading branch information
ihadeed committed Mar 23, 2017
1 parent 5d12aba commit 4932896
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/ng2-facebook-sdk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,12 +138,11 @@ export class FacebookService {
* This synchronous function returns back the current authResponse.
* @returns {FacebookAuthResponse}
*/
getAuthResponse(): FacebookAuthResponse | null {
getAuthResponse(): FacebookAuthResponse {
try {
return <FacebookAuthResponse>FB.getAuthResponse();
} catch (err) {
console.error(err);
return null;
}
}

Expand Down

0 comments on commit 4932896

Please sign in to comment.