Skip to content

Commit 5b86bcc

Browse files
committed
refactor: simplify since method is not returning a value
1 parent 403c952 commit 5b86bcc

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/espree.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -492,12 +492,11 @@ export default () => {
492492
if (typeof super.jsx_readString === "undefined") {
493493
throw new Error("Not a JSX parser");
494494
}
495-
const result = super.jsx_readString(quote);
495+
super.jsx_readString(quote);
496496

497497
if (this.type === tokTypes.string) {
498498
this[STATE].jsxAttrValueToken = true;
499499
}
500-
return result;
501500
}
502501

503502
/**

0 commit comments

Comments
 (0)