mirror of
https://github.com/chatmail/core.git
synced 2026-05-03 05:16:28 +03:00
remove option<path> from inner/imex handling to simplify the code
This commit is contained in:
@@ -188,7 +188,7 @@ impl Accounts {
|
||||
let id = self.add_account().await?;
|
||||
let ctx = self.get_account(id).await.expect("just added");
|
||||
|
||||
match crate::imex::imex(&ctx, crate::imex::ImexMode::ImportBackup, Some(file)).await {
|
||||
match crate::imex::imex(&ctx, crate::imex::ImexMode::ImportBackup, &file).await {
|
||||
Ok(_) => Ok(id),
|
||||
Err(err) => {
|
||||
// remove temp account
|
||||
|
||||
Reference in New Issue
Block a user