From 7f2ccfb168b0b27733be37cbd0649bf7fc679d77 Mon Sep 17 00:00:00 2001 From: link2xt Date: Sat, 25 Feb 2023 02:33:47 +0000 Subject: [PATCH] job: remove match with a single branch --- src/job.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/job.rs b/src/job.rs index 9a16421f7..7333ce498 100644 --- a/src/job.rs +++ b/src/job.rs @@ -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(()) }