Skip to content

Commit

Permalink
Update crates/turborepo-lib/src/framework.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Chris Olszewski <chris.olszewski@vercel.com>
  • Loading branch information
NicholasLYang and chris-olszewski committed Aug 18, 2023
1 parent 972f694 commit eadce54
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions crates/turborepo-lib/src/framework.rs
Original file line number Diff line number Diff line change
Expand Up @@ -154,13 +154,9 @@ impl Matcher {
pub fn infer_framework(workspace: &WorkspaceInfo, is_monorepo: bool) -> Option<&'static Framework> {
let frameworks = get_frameworks();

for framework in frameworks {
if framework.dependency_match.test(workspace, is_monorepo) {
return Some(framework);
}
}

None
frameworks
.iter()
.find(|framework| framework.dependency_match.test(workspace, is_monorepo))
}

#[cfg(test)]
Expand Down

0 comments on commit eadce54

Please sign in to comment.