refactor(template-names): avoid ambiguous arrow function

This commit is contained in:
Dominik Ferber
2016-03-23 10:14:16 +01:00
parent 363c85d493
commit b0e071d28d

View File

@@ -36,7 +36,7 @@ const isTemplateMemberExpression = node => (
)
// assuming node type is always either Identifier or Literal
const getNameOfProperty = node => node.type === 'Identifier' ? node.name : node.value
const getNameOfProperty = node => (node.type === 'Identifier' ? node.name : node.value)
const getErrorMessage = expected => `Invalid template name, expected name to be in ${expected}`