Skip to content

Commit

Permalink
chore: Update src/tags/unless.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
harttle committed Feb 18, 2024
1 parent 72c0175 commit 1c58aa4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tags/unless.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export default class extends Tag {
})
.on('tag:endunless', function () { this.stop() })
.on('template', (tpl: Template) => {
if (p !== this.elseTemplates || (p === this.elseTemplates && elseCount === 1)) {
if (p !== this.elseTemplates || elseCount === 1) {
p.push(tpl)
}
})
Expand Down

0 comments on commit 1c58aa4

Please sign in to comment.