Skip to content

Commit

Permalink
v13
Browse files Browse the repository at this point in the history
  • Loading branch information
PiotrHic committed Dec 22, 2024
1 parent 0047034 commit 3efab45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/core/basesyntax/PasswordValidator.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
public class PasswordValidator {
public void validate(String password, String repeatPassword)
throws PasswordValidationException {
if (!(password.equals ( repeatPassword ) && password.length ( ) >= 10)) {
if (!(password.equals(repeatPassword) && password.length() >= 10)) {
throw new PasswordValidationException("Wrong passwords");
}
}
Expand Down

0 comments on commit 3efab45

Please sign in to comment.