removed unnecessary normalization
This commit is contained in:
1 parent
a4420c2b6b
commit
72d13316ea
1 file changed
+1
-2
@@ -23,8 +23,7 @@ public record TariffConfiguration(Map<String, BigDecimal> animalBaseSums,
|
|||||||
throw new IllegalArgumentException("Tierart darf nicht leer oder null sein.");
|
throw new IllegalArgumentException("Tierart darf nicht leer oder null sein.");
|
||||||
}
|
}
|
||||||
|
|
||||||
String normalizedKey = species.trim().toUpperCase();
|
BigDecimal baseSum = animalBaseSums.get(species);
|
||||||
BigDecimal baseSum = animalBaseSums.get(normalizedKey);
|
|
||||||
|
|
||||||
if (baseSum == null) {
|
if (baseSum == null) {
|
||||||
throw new IllegalArgumentException(
|
throw new IllegalArgumentException(
|
||||||
|
|||||||
Reference in new issue
Block a user