mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
refactor(template-names): avoid ambiguous arrow function
This commit is contained in:
@@ -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}`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user