Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
bgw committed Jan 17, 2025
1 parent 4cfaf85 commit 91d1504
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions turbopack/crates/turbo-tasks/src/manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1487,16 +1487,12 @@ impl<B: Backend + 'static> TurboTasksApi for TurboTasks<B> {
// consistency is currently irrelevant
_consistency: ReadConsistency,
) -> Result<Result<RawVc, EventListener>> {
CURRENT_GLOBAL_TASK_STATE.with(|gts| loop {
CURRENT_GLOBAL_TASK_STATE.with(|gts| {
let gts_read = gts.read().unwrap();
gts_read.assert_task_id(parent_task_id);
match gts_read.get_local_task(local_task_id) {
LocalTask::Scheduled { done_event } => {
return Ok(Err(done_event.listen()));
}
LocalTask::Done { output } => {
return Ok(Ok(output.as_read_result()?));
}
LocalTask::Scheduled { done_event } => Ok(Err(done_event.listen())),
LocalTask::Done { output } => Ok(Ok(output.as_read_result()?)),
}
})
}
Expand Down

0 comments on commit 91d1504

Please sign in to comment.