Skip to content

Commit c155bfd

Browse files
committed
Reassigned variables
1 parent 56b17ca commit c155bfd

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

lib/rules/boolean-prop-naming.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -172,10 +172,7 @@ module.exports = {
172172
* @param {Function} addInvalidProp callback to run for each error
173173
*/
174174
function runCheck(proptypes, addInvalidProp) {
175-
let newProptypes = proptypes;
176-
newProptypes = newProptypes || [];
177-
178-
(newProptypes || []).forEach((prop) => {
175+
(proptypes || []).forEach((prop) => {
179176
if (config.validateNested && nestedPropTypes(prop)) {
180177
runCheck(prop.value.arguments[0].properties, addInvalidProp);
181178
return;

0 commit comments

Comments
 (0)