File tree Expand file tree Collapse file tree 1 file changed +7
-14
lines changed Expand file tree Collapse file tree 1 file changed +7
-14
lines changed Original file line number Diff line number Diff line change @@ -56,20 +56,13 @@ impl VerificationHelper for Helper<'_> {
56
56
for layer in structure. into_iter ( ) {
57
57
match layer {
58
58
MessageLayer :: SignatureGroup { results } => {
59
- for result in results {
60
- match result {
61
- Ok ( GoodChecksum { ka, .. } ) => {
62
- // A good signature! Find the index
63
- // of the singer key and return
64
- // success.
65
- self . index = self . certs . iter ( ) . position ( |c| c. cert ( ) == ka. cert ( ) ) ;
66
- assert ! ( self . index. is_some( ) ) ;
67
- return Ok ( ( ) ) ;
68
- }
69
- _ => {
70
- // We ignore any errors.
71
- }
72
- }
59
+ // We ignore any errors for now.
60
+ for GoodChecksum { ka, .. } in results. into_iter ( ) . flatten ( ) {
61
+ // A good signature! Find the index
62
+ // of the signer key and return
63
+ // success.
64
+ self . index = self . certs . iter ( ) . position ( |c| c. cert ( ) == ka. cert ( ) ) ;
65
+ assert ! ( self . index. is_some( ) ) ;
73
66
}
74
67
}
75
68
MessageLayer :: Compression { .. } => {
You can’t perform that action at this time.
0 commit comments