Skip to content

Commit

Permalink
refactor: use shorthand
Browse files Browse the repository at this point in the history
  • Loading branch information
lddubeau committed Jan 29, 2020
1 parent 1a33a57 commit af531cf
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/saxes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2609,9 +2609,8 @@ export class SaxesParser<O extends SaxesOptions = {}> {
while (l-- > 0) {
const tag = this.tag = tags.pop() as SaxesTag;
this.topNS = tag.ns!;
if (handler !== undefined) {
handler(tag as TagForOptions<O>);
}
// eslint-disable-next-line no-unused-expressions
handler?.(tag as TagForOptions<O>);
if (tag.name === name) {
break;
}
Expand Down

0 comments on commit af531cf

Please sign in to comment.