Skip to content

Commit

Permalink
Remove redundant hasNext method
Browse files Browse the repository at this point in the history
  • Loading branch information
nknguyenhc committed Mar 12, 2024
1 parent d4eb677 commit 951e632
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/app/core/services/auth.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,6 @@ export class AuthService {
sessionStorage.setItem(AuthService.SESSION_NEXT_KEY, next.url);
}

/**
* Checks if there is a next route to be redirected to after login,
* by checking the session storage.
*/
private hasNext(): boolean {
return sessionStorage.getItem(AuthService.SESSION_NEXT_KEY) !== null;
}

/**
* Returns the next route
*/
Expand Down

0 comments on commit 951e632

Please sign in to comment.