Skip to content

Commit

Permalink
fix: Useless conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
simenandre committed May 15, 2020
1 parent d2c4278 commit 6cf9dda
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/AuthContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -122,12 +122,6 @@ export const AuthProvider: FC<AuthProviderProps> = (props) => {
});
}

/* istanbul ignore next */
if (!userManager) {
// This should never happen.
throw new Error('UserManager is missing.');
}

const signIn = async (): Promise<void> => {
userManager && userManager.signinRedirect();
};
Expand Down

0 comments on commit 6cf9dda

Please sign in to comment.