Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
sokra committed Nov 13, 2024
1 parent 8be8365 commit adb08d5
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions turbopack/crates/turbo-tasks-backend/src/backend/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1771,12 +1771,10 @@ impl<B: BackingStorage> TurboTasksBackendInner<B> {
// We will finish the task, but it would be removed after the task is done
root_state.ty = ActiveType::CachedActiveUntilClean;
};
} else {
if let Some(root_state) = remove!(task, AggregateRoot) {
// Technically nobody should be listening to this event, but just in case
// we notify it anyway
root_state.all_clean_event.notify(usize::MAX);
}
} else if let Some(root_state) = remove!(task, AggregateRoot) {
// Technically nobody should be listening to this event, but just in case
// we notify it anyway
root_state.all_clean_event.notify(usize::MAX);
}
}
}
Expand Down

0 comments on commit adb08d5

Please sign in to comment.