Skip to content

Commit

Permalink
chore: Update src/tags/case.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
harttle committed Feb 18, 2024
1 parent c5d678c commit e7094f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tags/case.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export default class extends Tag {
})
.on('tag:endcase', () => stream.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 e7094f7

Please sign in to comment.