Skip to content

Commit

Permalink
feat(cb2-9558): corrected typo on statics
Browse files Browse the repository at this point in the history
  • Loading branch information
cb-cs committed Oct 31, 2023
1 parent 916670c commit 790ce4e
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ public class CvsOdometerReadingFormatter {
public static final String MILES = "miles";
public static final String MILES_WELSH = "milltiroedd";
private static final String MILES_UNIT = "mi";
public static final String KILOMETER = "kilometres";
public static final String KILOMETER_WELSH = "cilomedr";
public static final String KILOMETERS = "kilometres";
public static final String KILOMETERS_WELSH = "cilomedr";
private static final String KILOMETERS_UNIT = "km";
private static final String THOUSANDS_PATTERN = "\\B(?=(?:.{3})+$)";
private static final String THOUSANDS_SEPARATOR = ",";
Expand Down Expand Up @@ -51,9 +51,9 @@ private String formatUnit(String unit, Boolean unitWelsh) {
case MILES:
case MILES_UNIT:
return unitWelsh.equals(Boolean.TRUE) ? MILES_WELSH : MILES;
case KILOMETER:
case KILOMETERS:
case KILOMETERS_UNIT:
return unitWelsh.equals(Boolean.TRUE) ? KILOMETER_WELSH : KILOMETER;
return unitWelsh.equals(Boolean.TRUE) ? KILOMETERS_WELSH : KILOMETERS;
default:
return unit;
}
Expand Down

0 comments on commit 790ce4e

Please sign in to comment.