Skip to content

Commit 61d4a8a

Browse files
committed
chore: minor refactor
1 parent 66b9d0c commit 61d4a8a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/rules/jsx-no-leaked-render.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,7 @@ module.exports = {
168168
&& leftSideVar.defs.length
169169
&& leftSideVar.defs[0].node.init
170170
&& leftSideVar.defs[0].node.init.value;
171-
const leftSideType = typeof leftSideValue;
172-
if (leftSideType === 'boolean') {
171+
if (typeof leftSideValue === 'boolean') {
173172
return;
174173
}
175174
}

0 commit comments

Comments
 (0)