mirror of
https://github.com/chatmail/core.git
synced 2026-04-26 18:06:35 +03:00
Reduce unwrap and expect usage
This commit is contained in:
@@ -210,7 +210,7 @@ impl LoginParam {
|
||||
let key = format!("{}smtp_certificate_checks", prefix);
|
||||
let smtp_certificate_checks =
|
||||
if let Some(certificate_checks) = sql.get_raw_config_int(key).await? {
|
||||
num_traits::FromPrimitive::from_i32(certificate_checks).unwrap()
|
||||
num_traits::FromPrimitive::from_i32(certificate_checks).unwrap_or_default()
|
||||
} else {
|
||||
Default::default()
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user