Skip to content

Commit

Permalink
Remove always true/false occurrences
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandre-daubois committed Oct 23, 2024
1 parent 83a7a95 commit aa7d9d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion EventListener/SessionStrategyListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function onSuccessfulLogin(LoginSuccessEvent $event): void
$user = $token->getUserIdentifier();
$previousUser = $previousToken->getUserIdentifier();

if ('' !== ($user ?? '') && $user === $previousUser && $token::class === $previousToken::class) {
if ('' !== $user && $user === $previousUser && $token::class === $previousToken::class) {
return;
}
}
Expand Down

0 comments on commit aa7d9d8

Please sign in to comment.