Commit c2e9cabc authored by Ina Curdt's avatar Ina Curdt
Browse files

sonar work

parent e3019204
......@@ -54,13 +54,12 @@ public class AddressService {
public List<String> getStreets(String postcode, String community, Optional<String> district) {
if(district.equals(Optional.empty())){
if(!district.isPresent()){
return addressRepository.findStreetsByPostcodeAndCommunity(postcode, community);
}
else{
return addressRepository.findStreetsByPostcodeAndCommunityAndDistrict(postcode, community, district.get());
}
}
public List<String> getHousenumbers(String postcode, String community, String street) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment