Skip to content

Commit 8b825e5

Browse files
committed
refactor: improve if statement
1 parent 11b7ef1 commit 8b825e5

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

lib/rules/no-use-computed-property-like-method.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,7 @@ const getComponentPropsType = (property) => {
3737

3838
if (propsTypeProperty === undefined) return null
3939

40-
if (
41-
propsTypeProperty.type === 'Property' &&
42-
propsTypeProperty.value.type === 'Identifier'
43-
)
40+
if (propsTypeProperty.value.type === 'Identifier')
4441
return propsTypeProperty.value.name
4542
}
4643
return null

0 commit comments

Comments
 (0)