Skip to content

Commit

Permalink
chore(contracts):1105 Refactored.
Browse files Browse the repository at this point in the history
  • Loading branch information
ds-mwesener committed Jul 18, 2024
1 parent 8b01314 commit 7fd8f0e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/.trivyignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# ref https://github.com/catenax-ng/product-traceability-foss-backend/security/code-scanning/1419
# ref https://github.com/eclipse-tractusx/traceability-foss-backend/security/code-scanning/1419
CVE-2022-25857
# ref https://github.com/catenax-ng/tx-traceability-foss/security/code-scanning/6879
# ref https://github.com/eclipse-tractusx/traceability-foss/security/code-scanning/6879
# this is acceptable due to custom environment variable injection script which is executed upon FE container startup
AVD-KSV-0014
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public List<Contract> fetchEdcContractAgreements(List<ContractAgreementBaseEntit
try {

String globalAssetId = contractAgreementEntities.stream()
.filter(contractAgreementViewEntity -> contractAgreementViewEntity.getContractAgreementId().equals(contractAgreement.contractAgreementId()))
.filter(contractAgreementViewEntity -> contractAgreementViewEntity.getContractAgreementId() == null || contractAgreement.contractAgreementId() == null || contractAgreementViewEntity.getContractAgreementId().equals(contractAgreement.contractAgreementId()))
.findFirst()
.map(ContractAgreementBaseEntity::getGlobalAssetId)
.orElse(null);
Expand Down

0 comments on commit 7fd8f0e

Please sign in to comment.