Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
danez committed Apr 17, 2019
1 parent af3cac4 commit d549790
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/utils/getPropertyName.js
Expand Up @@ -29,7 +29,10 @@ export default function getPropertyName(propertyPath: NodePath): ?string {
const key = propertyPath.get('key');

// Try to resolve variables and member expressions
if (types.Identifier.check(key.node) || types.MemberExpression.check(key.node)) {
if (
types.Identifier.check(key.node) ||
types.MemberExpression.check(key.node)
) {
const value = resolveToValue(key).node;

if (
Expand Down

0 comments on commit d549790

Please sign in to comment.