Skip to content

Commit

Permalink
Update CheckStyle UserService.java
Browse files Browse the repository at this point in the history
  • Loading branch information
OksanaEnko authored Nov 16, 2024
1 parent 0619ffa commit f81d0a4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/java/core/basesyntax/UserService.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ public void registerUser(User user) {
try {
passwordValidator.validate(user.getPassword(), user.getRepeatPassword());
saveUser(user);
} catch (PasswordValidationException e) {
System.out.println("Your password are incorrect. Try again.");
}

} catch (PasswordValidationException e) {
System.out.println("Your password are incorrect. Try again.");
}
}

public void saveUser(User user) {
Expand Down

0 comments on commit f81d0a4

Please sign in to comment.