Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
mischnic committed Dec 10, 2024
1 parent 9c0da88 commit 43e01db
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions crates/next-api/src/server_actions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -411,12 +411,9 @@ pub async fn map_server_actions(graph: Vc<SingleModuleGraph>) -> Result<Vc<AllMo
};
// TODO the old implementation did parse_actions(to_rsc_context(module))
// is that really necessary?
Ok(match &*parse_actions(*node.module).await? {
Some(action_map) => {
Some((node.module, (layer, action_map.to_resolved().await?)))
}
None => None,
})
Ok(parse_actions(*node.module)
.await?
.map(|action_map| (node.module, (layer, action_map))))
}
})
.try_flat_join()
Expand Down

0 comments on commit 43e01db

Please sign in to comment.