Skip to content

Commit

Permalink
Remove @Class jsdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
jseminck committed Nov 14, 2017
1 parent c379156 commit e3638ab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/util/Components.js
Expand Up @@ -13,7 +13,6 @@ const astUtil = require('./ast');

/**
* Components
* @class
*/
class Components {
constructor() {
Expand Down Expand Up @@ -99,6 +98,7 @@ class Components {
list() {
const list = {};
const usedPropTypes = {};

// Find props used in components for which we are not confident
for (const i in this._list) {
if (!has(this._list, i) || this._list[i].confidence >= 2) {
Expand All @@ -122,6 +122,7 @@ class Components {
usedPropTypes[componentId] = (usedPropTypes[componentId] || []).concat(newUsedProps);
}
}

// Assign used props in not confident components to the parent component
for (const j in this._list) {
if (!has(this._list, j) || this._list[j].confidence < 2) {
Expand Down

0 comments on commit e3638ab

Please sign in to comment.