Skip to content

Commit f87ef61

Browse files
committed
Fix a crash after updating jscodeshift
1 parent 2290408 commit f87ef61

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

transforms/pure-component.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ module.exports = function(file, api, options) {
188188
isDuplicateDeclaration(a, false)
189189
);
190190
duplicateAssignments.remove();
191-
return j.objectExpression(
191+
return j.objectPattern(
192192
Array.from(propNames).map(createShorthandProperty(j, typeAnnotation))
193193
);
194194
}

0 commit comments

Comments
 (0)