File tree Expand file tree Collapse file tree 1 file changed +6
-10
lines changed
rust/rbac-registration/src/registration/cardano Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -480,22 +480,18 @@ fn update_role_data(
480480 // If there is new role singing key, use it, else use the old one
481481 let signing_key = match role_data. role_signing_key {
482482 Some ( key) => Some ( key) ,
483- None => {
484- match inner. role_data . get ( & role_data. role_number ) {
485- Some ( ( _, role_data) ) => role_data. signing_key_ref ( ) . clone ( ) ,
486- None => None ,
487- }
483+ None => match inner. role_data . get ( & role_data. role_number ) {
484+ Some ( ( _, role_data) ) => role_data. signing_key_ref ( ) . clone ( ) ,
485+ None => None ,
488486 } ,
489487 } ;
490488
491489 // If there is new role encryption key, use it, else use the old one
492490 let encryption_key = match role_data. role_encryption_key {
493491 Some ( key) => Some ( key) ,
494- None => {
495- match inner. role_data . get ( & role_data. role_number ) {
496- Some ( ( _, role_data) ) => role_data. encryption_ref ( ) . clone ( ) ,
497- None => None ,
498- }
492+ None => match inner. role_data . get ( & role_data. role_number ) {
493+ Some ( ( _, role_data) ) => role_data. encryption_ref ( ) . clone ( ) ,
494+ None => None ,
499495 } ,
500496 } ;
501497 let payment_key = get_shelley_addr_from_tx ( txn, role_data. payment_key ) ?;
You can’t perform that action at this time.
0 commit comments