Skip to content

Commit

Permalink
Review fix
Browse files Browse the repository at this point in the history
  • Loading branch information
cypt4 committed Dec 12, 2024
1 parent 909a6f8 commit 638fc9f
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,9 @@ OrchardSyncState::ApplyScanResults(
std::vector<OrchardNoteSpend> nf_to_add;

for (const auto& nf : block_scanner_results.found_spends) {
if (std::find_if(existing_notes.value().begin(),
existing_notes.value().end(), [&nf](const auto& v) {
return v.nullifier == nf.nullifier;
}) != existing_notes.value().end()) {
if (base::ranges::find_if(existing_notes.value(), [&nf](const auto& v) {
return v.nullifier == nf.nullifier;
}) != existing_notes.value().end()) {
nf_to_add.push_back(nf);
}
}
Expand Down

0 comments on commit 638fc9f

Please sign in to comment.