Skip to content

Commit

Permalink
accept default value for setting expression
Browse files Browse the repository at this point in the history
  • Loading branch information
kla committed Nov 29, 2024
1 parent bcf8c9b commit fd0f6a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/staxfile/evaluator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export default class Evaluator {
if (name === 'prompt') return await this.prompt(args[0], args[1])
if (name === 'requires?') return this.staxfile.config.requires.includes(args[0])
if (name === 'test') return this.test(args[0], args[1])
if (name === 'setting') return settings.read(args[0])
if (name === 'setting') return settings.read(args[0], args[1])
if (name === 'equals') return args[0] === args[1]

throw new ExpressionWarning(`Invalid template expression: ${name}`)
Expand Down

0 comments on commit fd0f6a6

Please sign in to comment.