Skip to content

Commit 89b8143

Browse files
golopotljharb
andauthored
Apply suggestion: replace concat([a]) with concat(a)
Co-Authored-By: Jordan Harband <[email protected]>
1 parent 0c06bb1 commit 89b8143

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/util/usedPropTypes.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ module.exports = function usedPropTypesInstructions(context, components, utils)
364364
const propName = ast.getKeyValue(context, properties[k]);
365365

366366
if (propName) {
367-
propVariables.set(propName, parentNames.concat([propName]));
367+
propVariables.set(propName, parentNames.concat(propName));
368368
usedPropTypes.push({
369369
allNames: parentNames.concat([propName]),
370370
name: propName,

0 commit comments

Comments
 (0)