job: remove match with a single branch

This commit is contained in:
link2xt
2023-02-25 02:33:47 +00:00
parent 3fc67de35e
commit 7f2ccfb168

View File

@@ -303,12 +303,8 @@ pub async fn add(context: &Context, job: Job) -> Result<()> {
job.save(context).await.context("failed to save job")?;
if delay_seconds == 0 {
match action {
Action::ResyncFolders | Action::DownloadMsg => {
info!(context, "interrupt: imap");
context.interrupt_inbox(InterruptInfo::new(false)).await;
}
}
info!(context, "interrupt: imap");
context.interrupt_inbox(InterruptInfo::new(false)).await;
}
Ok(())
}