minor cleanup2

This commit is contained in:
Paul 2022-09-22 11:55:56 +03:00
parent 9b804a1532
commit 727dc812ed
1 changed files with 2 additions and 4 deletions

View File

@ -281,13 +281,11 @@ impl IssueBundle<Prepared> {
let expected_ik: IssuerValidatingKey = (isk).into();
// Make sure the `expected_ik` matches the note_type for all notes.
if let Err(e) = self.actions.iter().try_for_each(|action| {
self.actions.iter().try_for_each(|action| {
action
.are_note_types_derived_correctly(&expected_ik)
.map(|_| ()) // Transform Result<NoteType,Error> into Result<(),Error)>.
}) {
return Err(e);
};
})?;
Ok(IssueBundle {
ik: self.ik,