Skip to content

Commit

Permalink
AKR(Backend) review fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jrkkp committed Feb 28, 2024
1 parent 212cbe4 commit 0df3255
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -358,12 +358,10 @@ private void copyDtoFieldsToTranslator(final TranslatorDTOCommonFields dto, fina
.filter(ClerkTranslatorAddressDTO::selected)
.findFirst();

selectedAddress.ifPresent(clerkTranslatorAddressDTO ->
translator.setSelectedSource(clerkTranslatorAddressDTO.source().toString())
);
selectedAddress.ifPresent(clerkTranslatorAddressDTO ->
translator.setSelectedType(clerkTranslatorAddressDTO.type().toString())
);
selectedAddress.ifPresent(clerkTranslatorAddressDTO -> {
translator.setSelectedSource(clerkTranslatorAddressDTO.source().toString());
translator.setSelectedType(clerkTranslatorAddressDTO.type().toString());
});
}

@CacheEvict(cacheNames = CacheConfig.CACHE_NAME_PUBLIC_TRANSLATORS, allEntries = true)
Expand Down

0 comments on commit 0df3255

Please sign in to comment.