Skip to content

Commit

Permalink
Flip bad if statement
Browse files Browse the repository at this point in the history
  • Loading branch information
Portals committed Mar 26, 2024
1 parent 18d5287 commit 088be8e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public record UserActivationToken(String value) {
public UserActivationToken {
Objects.requireNonNull(value);

if (value.length() == 9) {
if (value.length() != 9) {
throw new IllegalArgumentException("User activation token must be 9 numbers");
}
}
Expand Down

0 comments on commit 088be8e

Please sign in to comment.