Skip to content

Commit

Permalink
refactor(style): trim whitespace
Browse files Browse the repository at this point in the history
Signed-off-by: jonathan zollinger <[email protected]>
  • Loading branch information
Jonathan-Zollinger committed Feb 14, 2024
1 parent 676d3a3 commit fada076
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/main/java/com/graqr/threshr/model/queryparam/Place.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,12 @@
@Data
public class Place {
private final String place;

public Place(String zipcode) {
if (!String.valueOf(zipcode).matches("^\\d{5}(-|\\s*)?(\\d{4})?$")) {
throw new IllegalArgumentException("Invalid zipcode provided, \"" + zipcode + "\". Zipcode provided " +
"must match this regex: \"^\\d{5}(-|\\s*)?(\\d{4})?$\"");
}
place = zipcode;

}

public Place(String city, String state) {
Expand Down

0 comments on commit fada076

Please sign in to comment.