Skip to content

Commit

Permalink
Tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
casey committed Dec 29, 2023
1 parent aac4bf8 commit a773a4d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/analyzer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,7 @@ impl<'src> Analyzer<'src> {
define(recipe.name, "recipe", settings.allow_duplicate_recipes)?;
if recipe_table
.get(recipe.name.lexeme())
.map(|original| recipe.depth <= original.depth)
.unwrap_or(true)
.map_or(true, |original| recipe.depth <= original.depth)
{
recipe_table.insert(recipe.clone());
}
Expand Down

0 comments on commit a773a4d

Please sign in to comment.