Skip to content

Commit c1c273c

Browse files
style: code style change
1 parent a8fb30a commit c1c273c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/rules/prop-types.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,8 +196,10 @@ module.exports = {
196196
const argumentIsForwardRef = component.node.arguments && component.node.arguments[0].callee && component.node.arguments[0].callee.name === 'forwardRef';
197197
if (componentIsMemo && argumentIsForwardRef) {
198198
const forwardComponent = list.find(
199-
(innerComponent) => innerComponent.node.range[0] === component.node.arguments[0].range[0]
200-
&& innerComponent.node.range[0] === component.node.arguments[0].range[0]);
199+
(innerComponent) => (
200+
innerComponent.node.range[0] === component.node.arguments[0].range[0]
201+
&& innerComponent.node.range[0] === component.node.arguments[0].range[0]
202+
));
201203

202204
const isValidated = mustBeValidated(forwardComponent);
203205
const isIgnorePropsValidation = forwardComponent.ignorePropsValidation;

0 commit comments

Comments
 (0)