Skip to content

Commit

Permalink
Fix lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
timneutkens committed Feb 15, 2024
1 parent 2bf7c0c commit 35b6e10
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions packages/next-swc/crates/next-api/src/project.rs
Original file line number Diff line number Diff line change
Expand Up @@ -353,11 +353,9 @@ impl Project {
async fn app_project(self: Vc<Self>) -> Result<Vc<OptionAppProject>> {
let app_dir = find_app_dir(self.project_path()).await?;

Ok(Vc::cell(if let Some(app_dir) = &*app_dir {
Some(AppProject::new(self, *app_dir))
} else {
None
}))
Ok(Vc::cell(
app_dir.map(|app_dir| AppProject::new(self, app_dir)),
))
}

#[turbo_tasks::function]
Expand Down

0 comments on commit 35b6e10

Please sign in to comment.