diff --git a/crates/oxc_linter/src/service.rs b/crates/oxc_linter/src/service.rs index b8748bb9f..b3982b5bc 100644 --- a/crates/oxc_linter/src/service.rs +++ b/crates/oxc_linter/src/service.rs @@ -54,13 +54,13 @@ impl LintService { if !diagnostics.1.is_empty() { tx_error.send(Some(diagnostics)).unwrap(); } - - if done && processing.is_empty() { - tx_error.send(None).unwrap(); - break; - } } } + + if done && processing.is_empty() { + tx_error.send(None).unwrap(); + break; + } } }); }