From 5b86bcc0f764db0ca8612ac6a035b0d0bef26cc4 Mon Sep 17 00:00:00 2001 From: Brett Zamir Date: Thu, 28 Apr 2022 20:00:35 +0800 Subject: [PATCH] refactor: simplify since method is not returning a value --- lib/espree.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/espree.js b/lib/espree.js index 7e92d139..4db1ce29 100644 --- a/lib/espree.js +++ b/lib/espree.js @@ -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; } /**