File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments