Skip to content

Commit

Permalink
fix: remove unnecessary jsx text value check
Browse files Browse the repository at this point in the history
  • Loading branch information
azat-io committed Jun 8, 2023
1 parent b3dddfd commit 59390be
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/rules/no-irregular-whitespace.js
Expand Up @@ -156,10 +156,8 @@ module.exports = {
* @private
*/
function removeInvalidNodeErrorsInJSXText(node) {
if (typeof node.raw === "string") {
if (ALL_IRREGULARS.test(node.raw)) {
removeWhitespaceError(node);
}
if (ALL_IRREGULARS.test(node.raw)) {
removeWhitespaceError(node);
}
}

Expand Down

0 comments on commit 59390be

Please sign in to comment.