Skip to content

Commit

Permalink
refactor: replace Number function with unary + operator
Browse files Browse the repository at this point in the history
  • Loading branch information
golopot committed Jul 16, 2019
1 parent 76f65f7 commit 05a5abb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/rules/jsx-no-useless-fragment.js
Expand Up @@ -77,8 +77,8 @@ module.exports = {

return (
node.children.length -
Number(isPaddingSpaces(node.children[0])) -
Number(isPaddingSpaces(node.children[node.children.length - 1]))
(+isPaddingSpaces(node.children[0])) -
(+isPaddingSpaces(node.children[node.children.length - 1]))
) < 2;
}

Expand Down

0 comments on commit 05a5abb

Please sign in to comment.