Skip to content

Commit

Permalink
Apply suggestion: replace concat([a]) with concat(a)
Browse files Browse the repository at this point in the history
Co-Authored-By: Jordan Harband <ljharb@gmail.com>
  • Loading branch information
golopot and ljharb committed Jun 12, 2019
1 parent 0c06bb1 commit 89b8143
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/util/usedPropTypes.js
Expand Up @@ -364,7 +364,7 @@ module.exports = function usedPropTypesInstructions(context, components, utils)
const propName = ast.getKeyValue(context, properties[k]);

if (propName) {
propVariables.set(propName, parentNames.concat([propName]));
propVariables.set(propName, parentNames.concat(propName));
usedPropTypes.push({
allNames: parentNames.concat([propName]),
name: propName,
Expand Down

0 comments on commit 89b8143

Please sign in to comment.