Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
danez committed Apr 12, 2019
1 parent c772a92 commit f24e282
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 f24e282

Please sign in to comment.