Skip to content

Commit e292a07

Browse files
henryqdineenclaude
andcommitted
fix: collapse nested if to satisfy clippy
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 93a321d commit e292a07

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

  • crates/rspack_core/src/compilation

crates/rspack_core/src/compilation/mod.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -696,11 +696,9 @@ impl Compilation {
696696
};
697697

698698
// tear down the executor so build_module_graph_pass can set it up fresh
699-
if started_executor {
700-
if let Some(mut module_executor) = self.module_executor.take() {
701-
module_executor.after_build_module_graph(self).await?;
702-
self.module_executor = Some(module_executor);
703-
}
699+
if started_executor && let Some(mut module_executor) = self.module_executor.take() {
700+
module_executor.after_build_module_graph(self).await?;
701+
self.module_executor = Some(module_executor);
704702
}
705703

706704
build_result

0 commit comments

Comments
 (0)