FIX::Checkstyle errors

This commit is contained in:
Merel Steenbergen
2019-04-09 17:40:26 +02:00
parent d97ae9b53a
commit 81f48ca0b6

View File

@@ -306,11 +306,10 @@ public class UserService {
/**
* This method gets the list of all users.
* @return list of all users
*/
public void deleteAccount(String name) {
User user = userRepository.findByName(name);
if(user == null){
if (user == null) {
throw new ApplicationException("User doesn't exist");
}
userRepository.delete(user);