Skip to content

Commit

Permalink
Fix #329: Iterate over the entrySet instead of the keySet (#330)
Browse files Browse the repository at this point in the history
  • Loading branch information
banterCZ authored Aug 26, 2022
1 parent 2cc38a0 commit c8789b6
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -293,11 +293,9 @@ public void checkVerificationResult(IdentityVerificationPhase phase, OwnerId own
.add(docVerification);
}

for (String verificationId : verificationsById.keySet()) {
DocumentsVerificationResult docVerificationResult =
documentVerificationProvider.getVerificationResult(ownerId, verificationId);
List<DocumentVerificationEntity> docVerifications = verificationsById.get(verificationId);
verificationProcessingService.processVerificationResult(ownerId, docVerifications, docVerificationResult);
for (Map.Entry<String, List<DocumentVerificationEntity>> entry : verificationsById.entrySet()) {
DocumentsVerificationResult docVerificationResult = documentVerificationProvider.getVerificationResult(ownerId, entry.getKey());
verificationProcessingService.processVerificationResult(ownerId, entry.getValue(), docVerificationResult);
}

if (allDocVerifications.stream()
Expand Down

0 comments on commit c8789b6

Please sign in to comment.