crypto: Collapse an if tree.
parent
23173c4a1e
commit
721c459577
|
@ -360,8 +360,7 @@ impl KeyRequestMachine {
|
|||
} else {
|
||||
Err(KeyshareDecision::UntrustedDevice)
|
||||
}
|
||||
} else {
|
||||
if let Some(outbound) = outbound_session {
|
||||
} else if let Some(outbound) = outbound_session {
|
||||
if outbound
|
||||
.shared_with()
|
||||
.contains(&(device.user_id().to_owned(), device.device_id().to_owned()))
|
||||
|
@ -374,7 +373,6 @@ impl KeyRequestMachine {
|
|||
Err(KeyshareDecision::MissingOutboundSession)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// Create a new outgoing key request for the key with the given session id.
|
||||
///
|
||||
|
|
Loading…
Reference in New Issue