Skip to content

Commit

Permalink
Fix a recipe checking condition
Browse files Browse the repository at this point in the history
  • Loading branch information
James-Yu committed Nov 28, 2023
1 parent a918f83 commit 158b19e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compile/recipe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ function findRecipe(rootFile: string, langId: string, recipeName?: string): Reci
}
if (recipeName) {
recipe = recipes.find(candidate => candidate.name === recipeName)
if (recipe) {
if (recipe === undefined) {
logger.log(`Failed to resolve build recipe: ${recipeName}.`)
void logger.showErrorMessage(`[Builder] Failed to resolve build recipe: ${recipeName}.`)
}
Expand Down

0 comments on commit 158b19e

Please sign in to comment.