Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Commit

Permalink
fix: fallbackTemplate ignore error in case of property absence
Browse files Browse the repository at this point in the history
  • Loading branch information
stdword authored and Alexander Lais committed Nov 28, 2022
1 parent bc4ba6e commit c0d9238
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ async function main() {

// intersection of requested and available properties
const foundProperties = Object.keys(properties).filter(value => propertyNames.includes(value))
if (!foundProperties) {
if (foundProperties.length == 0) {
throw RangeError("no properties found, use fallback template")
}

Expand Down

0 comments on commit c0d9238

Please sign in to comment.