Skip to content

Commit

Permalink
chore: minor refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
akulsr0 committed May 7, 2024
1 parent 66b9d0c commit 61d4a8a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/rules/jsx-no-leaked-render.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,7 @@ module.exports = {
&& leftSideVar.defs.length
&& leftSideVar.defs[0].node.init
&& leftSideVar.defs[0].node.init.value;
const leftSideType = typeof leftSideValue;
if (leftSideType === 'boolean') {
if (typeof leftSideValue === 'boolean') {
return;
}
}
Expand Down

0 comments on commit 61d4a8a

Please sign in to comment.