Skip to content

Commit cbdf438

Browse files
committed
Merge pull request #1696 from bamarni/patch-3
removed unneeded else
2 parents 2c39fc9 + 539862c commit cbdf438

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)