Skip to content

Commit

Permalink
refactor: use let..else
Browse files Browse the repository at this point in the history
  • Loading branch information
link2xt committed Jan 5, 2025
1 parent fff4020 commit 3fe9a7b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/imap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1452,9 +1452,7 @@ impl Session {

let is_seen = fetch_response.flags().any(|flag| flag == Flag::Seen);

let rfc724_mid = if let Some(rfc724_mid) = uid_message_ids.get(&request_uid) {
rfc724_mid
} else {
let Some(rfc724_mid) = uid_message_ids.get(&request_uid) else {
error!(
context,
"No Message-ID corresponding to UID {} passed in uid_messsage_ids.",
Expand Down

0 comments on commit 3fe9a7b

Please sign in to comment.