Skip to content

Commit 16169d6

Browse files
committed
Fixed eslint issues within boolean-prop-naming.js file
1 parent d2e5df1 commit 16169d6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/rules/boolean-prop-naming.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,9 +172,10 @@ module.exports = {
172172
* @param {Function} addInvalidProp callback to run for each error
173173
*/
174174
function runCheck(proptypes, addInvalidProp) {
175-
proptypes = proptypes || [];
175+
let newProptypes = proptypes;
176+
newProptypes = newProptypes || [];
176177

177-
proptypes.forEach((prop) => {
178+
newProptypes.forEach((prop) => {
178179
if (config.validateNested && nestedPropTypes(prop)) {
179180
runCheck(prop.value.arguments[0].properties, addInvalidProp);
180181
return;

0 commit comments

Comments
 (0)