Skip to content

Commit 9b1348a

Browse files
Remove unused code and unnecessary else branches
1 parent 9c4dd53 commit 9b1348a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

User/ChainUserProvider.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,9 @@ public function refreshUser(UserInterface $user): UserInterface
8585
$e = new UserNotFoundException(\sprintf('There is no user with name "%s".', $username));
8686
$e->setUserIdentifier($username);
8787
throw $e;
88-
} else {
89-
throw new UnsupportedUserException(\sprintf('There is no user provider for user "%s". Shouldn\'t the "supportsClass()" method of your user provider return true for this classname?', get_debug_type($user)));
9088
}
89+
90+
throw new UnsupportedUserException(\sprintf('There is no user provider for user "%s". Shouldn\'t the "supportsClass()" method of your user provider return true for this classname?', get_debug_type($user)));
9191
}
9292

9393
public function supportsClass(string $class): bool

0 commit comments

Comments
 (0)