Skip to content

Commit

Permalink
Reassigned variables
Browse files Browse the repository at this point in the history
  • Loading branch information
caroline223 committed Jul 3, 2022
1 parent 56b17ca commit c155bfd
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/rules/boolean-prop-naming.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,10 +172,7 @@ module.exports = {
* @param {Function} addInvalidProp callback to run for each error
*/
function runCheck(proptypes, addInvalidProp) {
let newProptypes = proptypes;
newProptypes = newProptypes || [];

(newProptypes || []).forEach((prop) => {
(proptypes || []).forEach((prop) => {
if (config.validateNested && nestedPropTypes(prop)) {
runCheck(prop.value.arguments[0].properties, addInvalidProp);
return;
Expand Down

0 comments on commit c155bfd

Please sign in to comment.