Skip to content

Commit

Permalink
remove clone
Browse files Browse the repository at this point in the history
  • Loading branch information
ncitron committed Aug 26, 2024
1 parent c38ea13 commit 3b5f31e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions consensus-core/src/consensus_core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,8 @@ pub fn verify_generic_update(
if update.next_sync_committee.is_some() && update.next_sync_committee_branch.is_some() {
let is_valid = is_next_committee_proof_valid(
&update.attested_header,
&update.next_sync_committee.clone().unwrap(),
&update.next_sync_committee_branch.clone().unwrap(),
update.next_sync_committee.as_ref().unwrap(),
update.next_sync_committee_branch.as_ref().unwrap(),
);

if !is_valid {
Expand Down

0 comments on commit 3b5f31e

Please sign in to comment.