Skip to content

Commit

Permalink
SELC-4906 fix: codeQL log
Browse files Browse the repository at this point in the history
  • Loading branch information
empassaro committed Jun 11, 2024
1 parent aa7f19d commit 612f92a
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ public ProductsConnectorImpl(ProductService productService) {

@Override
public Product getProduct(String id, InstitutionType institutionType) {
log.debug(LogUtils.CONFIDENTIAL_MARKER, "getProduct id = {}", id);
if (id.matches("\\w*")) {
log.debug(LogUtils.CONFIDENTIAL_MARKER, "getProduct id = {}", id);
}
Assert.hasText(id, "A productId is required");
Product product = productService.getProduct(id);
if (Objects.nonNull(product.getInstitutionContractMappings()) && product.getInstitutionContractMappings().containsKey(institutionType)) {
Expand All @@ -35,7 +37,9 @@ public Product getProduct(String id, InstitutionType institutionType) {
}
@Override
public Product getProductValid(String id) {
log.debug(LogUtils.CONFIDENTIAL_MARKER, "getProductValid id = {}", id);
if (id.matches("\\w*")) {
log.debug(LogUtils.CONFIDENTIAL_MARKER, "getProductValid id = {}", id);
}
Assert.hasText(id, "A productId is required");
Product result = productService.getProductIsValid(id);
log.debug(LogUtils.CONFIDENTIAL_MARKER, "getProductValid result = {}", result);
Expand Down

0 comments on commit 612f92a

Please sign in to comment.