Skip to content

Commit bf69820

Browse files
author
Joachim Seminck
committed
Replace var with const for the new code that was added
1 parent f85ff44 commit bf69820

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/util/Components.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,11 @@ Components.prototype.list = function() {
9999
component = this.get(node);
100100
}
101101
if (component) {
102-
var newUsedProps = (this._list[i].usedPropTypes || []).filter(function(propType) {
102+
const newUsedProps = (this._list[i].usedPropTypes || []).filter(function(propType) {
103103
return !propType.node || propType.node.kind !== 'init';
104104
});
105105

106-
var componentId = this._getId(component.node);
106+
const componentId = this._getId(component.node);
107107
usedPropTypes[componentId] = (usedPropTypes[componentId] || []).concat(newUsedProps);
108108
}
109109
}

0 commit comments

Comments
 (0)