File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,6 @@ const astUtil = require('./ast');
13
13
14
14
/**
15
15
* Components
16
- * @class
17
16
*/
18
17
class Components {
19
18
constructor ( ) {
@@ -99,6 +98,7 @@ class Components {
99
98
list ( ) {
100
99
const list = { } ;
101
100
const usedPropTypes = { } ;
101
+
102
102
// Find props used in components for which we are not confident
103
103
for ( const i in this . _list ) {
104
104
if ( ! has ( this . _list , i ) || this . _list [ i ] . confidence >= 2 ) {
@@ -122,6 +122,7 @@ class Components {
122
122
usedPropTypes [ componentId ] = ( usedPropTypes [ componentId ] || [ ] ) . concat ( newUsedProps ) ;
123
123
}
124
124
}
125
+
125
126
// Assign used props in not confident components to the parent component
126
127
for ( const j in this . _list ) {
127
128
if ( ! has ( this . _list , j ) || this . _list [ j ] . confidence < 2 ) {
You can’t perform that action at this time.
0 commit comments