Skip to content

Commit 539862c

Browse files
committed
removed unneeded else
1 parent 4eb160b commit 539862c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cookbook/security/custom_provider.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,9 +135,9 @@ Here's an example of how this might look::
135135
// ...
136136

137137
return new WebserviceUser($username, $password, $salt, $roles)
138-
} else {
139-
throw new UsernameNotFoundException(sprintf('Username "%s" does not exist.', $username));
140138
}
139+
140+
throw new UsernameNotFoundException(sprintf('Username "%s" does not exist.', $username));
141141
}
142142

143143
public function refreshUser(UserInterface $user)

0 commit comments

Comments
 (0)