Skip to content

Commit

Permalink
remove TODO: We can assume that users will pass in empty vectors
Browse files Browse the repository at this point in the history
  • Loading branch information
kevaundray committed Sep 3, 2024
1 parent f8c3276 commit 6850fec
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions cryptography/bls12_381/src/batch_add.rs
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,6 @@ pub fn multi_batch_addition(mut multi_points: Vec<Vec<G1Affine>>) -> Vec<G1Affin
}
}

// multi_points.into_iter().map(|points| points[0]).collect()
// TODO: using this incase we have empty vectors passed in
multi_points
.into_iter()
.map(|points| points.get(0).copied().unwrap_or(G1Affine::default()))
Expand Down

0 comments on commit 6850fec

Please sign in to comment.