Skip to content

Commit

Permalink
refactor: simplify since method is not returning a value
Browse files Browse the repository at this point in the history
  • Loading branch information
brettz9 committed Apr 28, 2022
1 parent 403c952 commit 5b86bcc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/espree.js
Original file line number Diff line number Diff line change
Expand Up @@ -492,12 +492,11 @@ export default () => {
if (typeof super.jsx_readString === "undefined") {
throw new Error("Not a JSX parser");
}
const result = super.jsx_readString(quote);
super.jsx_readString(quote);

if (this.type === tokTypes.string) {
this[STATE].jsxAttrValueToken = true;
}
return result;
}

/**
Expand Down

0 comments on commit 5b86bcc

Please sign in to comment.